Module "xplhub"

This module contains the embedded hub function. Do not use it directly, it will be invoked automatically if xpl.settings.xplhub == true when the listener is started.
 
No global will be created, it just returns the hub table.

Copyright © 2011 Thijs Schreijer

Release: Version 0.1, LuaxPL framework.

Functions

restart () Reallocates the xPL hub socket.
start () Starts the internal hub implementation.
stop () Stops the internal hub implementation and releases the socket.


Functions

restart ()
Reallocates the xPL hub socket. Use this if the network connection changed while in operation.

Return value:

true if success, or nil + error message otherwise
start ()
Starts the internal hub implementation. It will bind to the xPL port and start forwarding messages to its clients (external clients on the same system as well as internal LuaxPL clients)

Return value:

true if success, or nil + error message otherwise
stop ()
Stops the internal hub implementation and releases the socket.

Return value:

true

Valid XHTML 1.0!