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 mdi example
  • python how to return tuple
  • java cloning collections
  • python read file
  • jframe calendar control
  • open().read() python
  • python iterate tuple
  • how to connect to java with oracle
  • perl rename a directory
  • python getting random numbers

No comments yet.

Leave a Comment