Skip to content

Instantly share code, notes, and snippets.

@breadchris
Created April 2, 2015 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breadchris/c7ce39f683bbc516d675 to your computer and use it in GitHub Desktop.
Save breadchris/c7ce39f683bbc516d675 to your computer and use it in GitHub Desktop.
Echo server
(lambda s=__import__("socket").socket():s.bind(('',9237))==s.listen(5)==map(lambda c,d:c.send(c.recv(99)),(s.accept()[0]for _ in iter(int,1))))()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment