<reponame>bahadley/mgc<gh_stars>0
#!/usr/bin/python

import socket

UDP_IP = "10.0.0.3"
UDP_PORT = 30609 

sock = socket.socket(socket.AF_INET, # Internet
                     socket.SOCK_DGRAM) # UDP
sock.bind((UDP_IP, UDP_PORT))

data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes
print "received message: ", data, "\nfrom: ", addr

#!/usr/bin/python

import socket

UDP_IP = "10.0.0.3"
UDP_PORT = 30609 

sock = socket.socket(socket.AF_INET, # Internet
                     socket.SOCK_DGRAM) # UDP
sock.bind((UDP_IP, UDP_PORT))

data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes
print "received message: ", data, "\nfrom: ", addr
#!/usr/bin/python # Internet # UDP # buffer size is 1024 bytes