leads.comm.server#

Submodules#

Package Contents#

Functions#

create_server

Create a server service. :param port: the port on which the server listens :param callback: the callback methods :param separator: the separator that splits messages into sentences :return: the server service

start_server

Starts the server service. :param target: the server service to start :param parallel: True: run in a separate thread; False: run in the caller thread :return: the server service

API#

leads.comm.server.create_server(port: int = 16900, callback: leads.comm.prototype.Callback = Callback(), separator: bytes = b';') leads.comm.server.server.Server[source]#

Create a server service. :param port: the port on which the server listens :param callback: the callback methods :param separator: the separator that splits messages into sentences :return: the server service

leads.comm.server.start_server(target: leads.comm.server.server.Server = create_server(), parallel: bool = False) leads.comm.server.server.Server[source]#

Starts the server service. :param target: the server service to start :param parallel: True: run in a separate thread; False: run in the caller thread :return: the server service