Home | Trees | Indices | Help |
---|
|
1 import socket 2 from logger import main_log, exception_log4 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 5 try: 6 sock.connect((ip, port)) 7 return sock 8 except Exception as inst: 9 main_log.error('Network down. All network based renderers and sensors will not function.', 10 inst)11 17
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Feb 18 16:55:27 2011 | http://epydoc.sourceforge.net |