qb :: backend :: pythonChildHandler :: PFXSimpleSocketServer :: Class PFXSimpleSocketServer
[hide private]
[frames] | no frames]

Class PFXSimpleSocketServer

source code


Listens for output from PFXSimpleClient on the same host, usually running in another python interpreter inside a 3rd-party application such as Maya.

Uses a port auto-assigned by the OS if possible, doesn't seem to be available on python 2.4 running on CentOS 5.x, otherwise use a port in the range 55000-56000

Instance Methods [hide private]
 
__init__(self, handlerClass=<class qb.backend.pythonChildHandler.PFXRequestHandler at 0x10..., timeout=1)
Constructor.
source code
 
start(self, **kwargs) source code
 
stop(self) source code

Inherited from SocketServer.TCPServer: close_request, fileno, get_request, server_activate, server_bind, server_close, shutdown_request

Inherited from SocketServer.BaseServer: finish_request, handle_error, handle_request, handle_timeout, process_request, serve_forever, shutdown, verify_request

Inherited from SocketServer.BaseServer (private): _handle_request_noblock

Class Variables [hide private]
  SERVER_ADDRESS = ('127.0.0.1', 0)

Inherited from SocketServer.TCPServer: address_family, allow_reuse_address, request_queue_size, socket_type

Inherited from SocketServer.BaseServer: timeout

Instance Variables [hide private]
tuple buffer
The requestHandler class will store any received messages as a tuple in the instance's buffer attribute; the tuple will contain the message length as a packed integer, and the message itself.
Method Details [hide private]

__init__(self, handlerClass=<class qb.backend.pythonChildHandler.PFXRequestHandler at 0x10..., timeout=1)
(Constructor)

source code 

Constructor. May be extended, do not override.

Overrides: SocketServer.BaseServer.__init__
(inherited documentation)