Timeout on a UDP Socket

Josiah Carlson jcarlson at nospam.uci.edu
Sun Mar 21 19:51:57 EST 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