diff options
author | rcoh <rcoh@mit.edu> | 2011-01-03 22:28:28 -0500 |
---|---|---|
committer | rcoh <rcoh@mit.edu> | 2011-01-03 22:28:28 -0500 |
commit | f5c29b39f3eef83227e3fb7c550d9b2922a19894 (patch) | |
tree | d8b1575b49762756ae1cbd152b9c5f51f3f93801 /util/NetworkOps.py | |
parent | ba796403d111ffc3b29620647f38bc5541840ccb (diff) |
fixed a bug caused by util stuff. some new functionality, not all fully implemented.
Diffstat (limited to 'util/NetworkOps.py')
-rw-r--r-- | util/NetworkOps.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/NetworkOps.py b/util/NetworkOps.py index 2fa531e..6c50c6d 100644 --- a/util/NetworkOps.py +++ b/util/NetworkOps.py @@ -4,7 +4,8 @@ def getConnectedSocket(ip,port): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: sock.connect((ip, port)) + return sock except Exception as inst: main_log.error('Network down. All network based renderers and sensors will not function.', inst) - return sock + print (ip, port) |