SO Code in
read_nb.py
try:
data,address = s.recvfrom(10000)
I didn't understand how to write data, address =
.
http://docs.python.jp/2.6/library/socket.html
socket.recvfrom(bufsize[, flags]) Receives data from the socket and returns the result as a tuple (string, address).
Is this a tuple? I understand that in the case of substitution, it is written as above.
Recommended Posts