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( ('', 17100) ) On windows, connect() returns and I have a broadcast so

Re: socket code

2005-07-08 Thread Grant Edwards
On 2005-07-08, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > 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.con