Timeout on a UDP Socket

Josiah Carlson jcarlson at nospam.uci.edu
Mon Mar 22 01:51:57 CET 2004


> UDPSock = socket(AF_INET,SOCK_DGRAM)
> 		# Receive messages
>               data = UDPSock.recv(buf)

I believe in order to receive from a UDP socket, it must be bound to an 
address and port so that the server can actually send it somewhere.

  - Josiah



More information about the Python-list mailing list