diff options
author | rcoh <rcoh@mit.edu> | 2010-12-15 00:18:24 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2010-12-15 00:18:24 -0500 |
commit | a89c772cd64c6790906734f7128947e0f453c7e3 (patch) | |
tree | 250e0b0d235e1215fa7b40fcfd24b74028ccf643 /util/NetworkOps.py | |
parent | 8cecf83f16fcdec5b3ee68cc40c2b360e0f845d0 (diff) |
About halfway done with the Util cleanup. Some stuff left to do with scoping etc.
Diffstat (limited to 'util/NetworkOps.py')
-rw-r--r-- | util/NetworkOps.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/NetworkOps.py b/util/NetworkOps.py new file mode 100644 index 0000000..a247090 --- /dev/null +++ b/util/NetworkOps.py @@ -0,0 +1,6 @@ +import socket +def getConnectedSocket(ip,port): + sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + print (ip, port) + sock.connect((ip, port)) + return sock |