socket in python 2.2 vs 2.1

Ivan Bykov ivan at kupol.ru
Tue Feb 26 05:44:49 CET 2002


Hello!

Thursday, February 21, 2002, 19:43:31, Martin wrote:
>> Python 2.1: '255.255.255.255' - valid address. And my application
>> working is correct.
MvL> 255.255.255.255 is not a valid IP number (even though Python 2.1
MvL> accepts it - it actually looks like a bug in the system's IP stack
MvL> which fails to reject this address). Your application works just
MvL> because the system fails to check your address correctly. Python 2.2
MvL> uses different code to check, thus detects the error.
IMHO, '255.255.255.255' is a valid IP number. This is number mask, use
for broadcast packet.
MvL> Just remove the connect call.
Then program to work not will.

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






More information about the Python-list mailing list