socket in python 2.2 vs 2.1

Ivan Bykov ivan at kupol.ru
Wed Feb 20 00:08:52 EST 2002


Hello!

This code working in Python 2.1 and not working in Python 2.2.
Testing under Windows 98 and 2000.
This code want to send UDP packets for all.
===
PythonWin 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (mhammond at skippinet.com.au) - see 'Help/About PythonWin' for further copyright information.
>>> import socket
>>> tst=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>>> tst.connect(('255.255.255.255',5555))
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
  File "<string>", line 1, in connect
gaierror: (7, 'getaddrinfo failed')
>>>
===
It`s bug?

-- 
Best regards,
 Ivan Bykov                         mailto:ivan at kupol.ru






More information about the Python-list mailing list