Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: communicate small messages between machines with Socket Datagrams

Python: communicate small messages between machines with Socket Datagrams
{filelink=16716}

import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Accept UDP datagrams, on the given port, from any sender
s.bind(("", 8081))
print "waiting on port:", port
while True:
data, addr = s.recvfrom(1024)
print "Received:", data, "from", addr

Users who found this page were searching for:

  • java format french date
  • python define static
  • list maximum length in python
  • python raise IOerror
  • convert text to number python
  • java elapsed time using date
  • python sublist
  • how to convert tuple to string in python
  • python convert object to number
  • Python in memory file

No comments yet.

Leave a Comment