diff options
Diffstat (limited to 'inputs')
-rw-r--r-- | inputs/TCPInput.py | 2 | ||||
-rw-r--r-- | inputs/UDPInput.py | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/inputs/TCPInput.py b/inputs/TCPInput.py index 72d8742..01b6a99 100644 --- a/inputs/TCPInput.py +++ b/inputs/TCPInput.py @@ -15,8 +15,6 @@ class TCPInput(Input.Input): def handle(self): # get data from the TCP socket connected to the client self.data = self.request.recv(1024).strip() - print "%s wrote:" % self.client_address[0] - print self.data pydict = json.loads(self.data) # decode and add to queue self.responseQueue.append(pydict) diff --git a/inputs/UDPInput.py b/inputs/UDPInput.py index b0d6c93..5b83792 100644 --- a/inputs/UDPInput.py +++ b/inputs/UDPInput.py @@ -7,11 +7,8 @@ class UDPInput(Input): PORT = self.argDict['Port'] # Arbitrary non-privileged port self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.sock.bind((HOST, PORT)) - print 'UDPINIT' def sensingLoop(self): - print 'udploop' (data,address) = self.sock.recvfrom(1024) dataDict = {'data':data, 'address':address} - print 'LOLOLOLOL' self.respond(dataDict) |