Need an application sends from paricular port
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Feb 17 05:05:42 EST 2009
En Tue, 17 Feb 2009 03:44:51 -0200, Sambit Samal <sambit2005 at gmail.com>
escribió:
>> I am new to Python world
>>
>> I need a python script , which binds at a user defind port & sends to
>> other enity , which waits at particular port.
>> The other enity will respond & Python script should receive that at the
>> defined port
>>
>> The communication will happen over UDP
(I'm rather sure I replied to your first request, but I cannot find my own
post anywhere, so I'll try again)
See the SocketServer module:
http://docs.python.org/library/socketserver.html -- you may want to use
ForkingUDPServer or ThreadingUDPServer. There is a client/server example
at the end.
--
Gabriel Genellina
More information about the Python-list
mailing list