Re: UDP socket, need help setting sending port

2005-12-22 Thread Steve Horsley
Sells, Fred wrote: > I'm using MSW XP Pro with Python 2.4 to develop but production will be Linux > with Python 2.3. (could upgrade to 2.4 if absolutely necessary) I can also > switch to Linux for development if necessary. > > I am writing some python to replace proprietary software that talks to

Re: UDP socket, need help setting sending port

2005-12-20 Thread keirr
A few trivial corrections, to my own post :-( tc_sock = socket(socket... should be tc_sock = socket.socket(socket... of course and, (while I'm here) when I stated that calling connect on an unbound socket caused a ephemeral port to be assigned, I should have written "calling connect on an unboun

Re: UDP socket, need help setting sending port

2005-12-20 Thread keirr
Fred, It is quite possible I've misunderstood the problem :-) but have you tried anything like import socket tc_local_port = tc_remote_port = outgoing_if = "172.16.1.2" # say remote_tc_host = "172.16.1.3" # say # udp is the default for DGRAM tc_sock = socket(s

UDP socket, need help setting sending port

2005-12-19 Thread Sells, Fred
I'm using MSW XP Pro with Python 2.4 to develop but production will be Linux with Python 2.3. (could upgrade to 2.4 if absolutely necessary) I can also switch to Linux for development if necessary. I am writing some python to replace proprietary software that talks to a timeclock via UDP. The ti