summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rw-r--r--server.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/server.py b/server.py
index 819d88d..a74495f 100644
--- a/server.py
+++ b/server.py
@@ -37,19 +37,14 @@ while True:
# Receive the data in small chunks and retransmit it
while True:
data = connection.recv(16)
- print >>sys.stderr, 'received "%s"' % data
if data:
if data=="get\n":
status, frame = cap.read()
framestr = frame.tostring()
lenframestr=len(framestr)
- print hex(lenframestr)
- for i in xrange(0,4):
- print hex(ord(encode_int(lenframestr)[i]))
- print 'sending ',lenframestr,' bytes to the client'
connection.sendall(encode_int(lenframestr)+framestr);
- cv2.imshow("img",frame)
- cv2.waitKey(20)
+ #cv2.imshow("img",frame)
+ #cv2.waitKey(1)
else:
print >>sys.stderr, 'no more data from', client_address
break