UNIX domain sockets problem
David Arnold
arnold at dstc.edu.au
Mon May 1 02:41:10 EDT 2000
-->"Steven" == Steven D Arnold <stevena at permanent.cc> writes:
Steven> Anyone have a clue what's going on?
i don't think listen() is not supported for datagram (ie. SOCK_DGRAM)
sockets.
it's not clear from your code whether you want to support multiple,
simultaneous clients or not. if you want simultaneous clients using a
stream socket, you'll need to add the accepted socket to a select()
loop or spawn a reader thread (or process). if you use a datagram
socket, you could use recvfrom() to identify the clients and dispatch
the packet appropriately.
anyway, hope this helps,
d
More information about the Python-list
mailing list