socket code
ronpro at cox.net
ronpro at cox.net
Fri Jul 8 11:53:30 EDT 2005
Hello,
I'm trying to create a broadcast socket in some portable code (windows XP & mandrake linux). When I run the following lines through idle:
import socket
s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
s.connect( ('<broadcast>', 17100) )
On windows, connect() returns and I have a broadcast socket to which I can write. One LINUX connect() just tells me 'Permission denied'.
Does anybody know why? Any thoughts on how I can get around this? I have to transmitt data to an old system. The system only reads broadcast data on port 17100.
Thanks for the input.
Ron Provost
More information about the Python-list
mailing list