Skip to content

Commit

Permalink
Print message
Browse files Browse the repository at this point in the history
  • Loading branch information
rspivak committed Jun 6, 2012
1 parent 50fadb5 commit be6fd14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server01.py
Expand Up @@ -56,6 +56,8 @@ def handle(sock):
bytes = int(sock.recv(1024))
# get our random bytes
data = os.urandom(bytes)

print 'Got request to send %d bytes. Sending them all...' % bytes
# send them all
sock.sendall(data)

Expand Down

0 comments on commit be6fd14

Please sign in to comment.