Created
April 18, 2015 17:11
-
-
Save dohvis/7353b642c692cab62960 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AF_INET = 2 | |
SOCK_STREAM = 1 | |
s = socket.socket(AF_INET, SOCK_STREAM) | |
s.bind(("0.0.0.0",8888)) | |
s.listen(1) | |
while True: | |
print "wait for connection.." | |
s,addr = s.accept() | |
print addr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment