Package nxt :: Module server

Module server

source code

Use for a socket-interface NXT driver. Command and protocol docs at: http://code.google.com/p/nxt-python/wiki/ServerUsage

Functions
 
serve_forever(password=None, authorizedips=[])
Serve clients until the window is closed or there is an unhandled error.
source code
Variables
  host = ''
  port = 54174
  outport = 54374
  __package__ = 'nxt'
Function Details

serve_forever(password=None, authorizedips=[])

source code 

Serve clients until the window is closed or there is an unhandled error. If you supply a password, then any ip that wants to control the NXT will have to send the password once to be authorized before any of the commands it sends will be carried out. authorizedips is a list of the ips that can have access to the NXT without supplying a password. Normally, this is left blank.