socket code

2005-07-08 Thread ronpro
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

python broadcast socket

2005-06-29 Thread ronpro
I'm sort of new to both Python and socket programming so I appologize ahead of time if this is a dumb question. I have found that the following code works on windows but on linux I get an exception. import socket s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM ) s.connect( ( 'broadcast',