Created
March 17, 2017 23:55
-
-
Save philcrump/68b90d5e40d9ec974e8bf53084542620 to your computer and use it in GitHub Desktop.
ukhas.net socket
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
#!/usr/bin/env python | |
import socket | |
TCP_IP = 'ukhas.net' | |
TCP_PORT = 3010 | |
BUFFER_SIZE = 1024 | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect((TCP_IP, TCP_PORT)) | |
while 1: | |
print s.recv(BUFFER_SIZE) | |
s.close() |
oddstr13
commented
Mar 18, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment