text: #!/usr/bin/python
  
  import socket
  
  print "Awaiting connection...\n"
  
  httprecv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  httprecv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
  httprecv.bind(("0.0.0.0",8000))
  httprecv.listen(2)
  
  (client, ( ip,sock)) = httprecv.accept()
  print "Received connection from : ", ip
  data = client.recv(4096)
  print str(data)
  
  client.close()
  httprecv.close()