aboutsummaryrefslogtreecommitdiff
path: root/inputs
diff options
context:
space:
mode:
authorGravatar Russell Cohen <rcoh@mit.edu>2010-11-29 00:00:26 -0500
committerGravatar Russell Cohen <rcoh@mit.edu>2010-11-29 00:00:26 -0500
commitcf1f2224b3625b01a6aa7db221403849b308b3bc (patch)
tree9ad55077f45efc7a8434688332ee281a28a1cae7 /inputs
parent9c9babfa7032b443138c4b457aabaf79fad385b3 (diff)
Making recursive behaviors work. Some bugs existed before. Adding running
behavior which makes a signal bounce back and forth.
Diffstat (limited to 'inputs')
-rw-r--r--inputs/TCPInput.py2
-rw-r--r--inputs/UDPInput.py3
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)