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:

  • using shifting print data in java
  • python program for fibonacci sequence
  • python track mouse
  • java read device list usb
  • how to use math.pi in java
  • python convert string to number
  • how to get python errors in prgram
  • java swing text field restrict entry to decimal numbers
  • whether a key exists in python dictionary
  • java comma operator

No comments yet.

Leave a Comment