Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(16)  |  Derive(0)  |  Import(0)

src/u/b/uberserver-HEAD/server.py   uberserver(Download)
	def sighup(sig, frame):
		_root.console_write('Received SIGHUP.')
		if _root.sighup:
			_root.reload()
 
	signal.signal(signal.SIGHUP, sighup)
except AttributeError:
	pass
 
_root.console_write('-'*40)
 
_root.console_write('-'*40)
_root.console_write('Starting uberserver...\n')
 
host = ''
	print 'Error: Could not start NAT server - hole punching will be unavailable.'
 
_root.console_write()
_root.console_write('Detecting local IP:')
try: local_addr = socket.gethostbyname(socket.gethostname())