Pre-ci test passed git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4000 818b1a75-f10b-46b9-bf7c-635c3b92a50f
13 lines
358 B
Python
13 lines
358 B
Python
import threading
|
|
import socket
|
|
|
|
class Responder(threading.Thread):
|
|
def run(self):
|
|
# Create the socket to receive from clients
|
|
managementSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
while True:
|
|
print "Reading from socket..."
|
|
receivedBytes,senderAddress = managementSocket.recvfrom(1024)
|
|
print receivedByteCount, "bytes received"
|
|
|