Skip to content

Instantly share code, notes, and snippets.

@theepicsnail
Created March 18, 2011 00:23
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 theepicsnail/875409 to your computer and use it in GitHub Desktop.
Save theepicsnail/875409 to your computer and use it in GitHub Desktop.
Client
import socket
server = ''
port = 1235
def run():
while True:
i = raw_input("Enter a number!")
s = socket.socket()
s.connect((server,port))
s.send("activate %s"%i)
s.close()
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment