Python client code for character capitalization conversion through TCP

From , 3 Years ago, written in Python, viewed 215 times.
URL https://pastebin.vip/view/b3af1c79
  1. import socket
  2. import netstring
  3.  
  4. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  5. s.connect(('127.0.0.1', 8081))
  6. while 1:
  7.     arg = raw_input("Send: ")
  8.     if not arg:
  9.         netstring.writens(s, "end")
  10.         break
  11.     netstring.writens(s, arg)
  12.     ret = netstring.readns(s)
  13.     print "Returned:", ret
  14. s.close()
  15.  
  16. #//python/8083

Reply to "Python client code for character capitalization conversion through TCP"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website