leads.comm.client#
Submodules#
Package Contents#
Functions#
Create a client service. :param port: the port to which the client connects :param callback: the callback methods :param separator: the separator that splits messages into sentences :return: the client service |
|
Starts the client service. :param server_address: the server address to which the client connects :param target: the client service to start :param parallel: True: run in a separate thread; False: run in the caller thread :return: the client service |
API#
- leads.comm.client.create_client(port: int = 16900, callback: leads.comm.prototype.Callback = Callback(), separator: bytes = b';') leads.comm.client.client.Client[source]#
Create a client service. :param port: the port to which the client connects :param callback: the callback methods :param separator: the separator that splits messages into sentences :return: the client service
- leads.comm.client.start_client(server_address: str, target: leads.comm.client.client.Client = create_client(), parallel: bool = False) leads.comm.client.client.Client[source]#
Starts the client service. :param server_address: the server address to which the client connects :param target: the client service to start :param parallel: True: run in a separate thread; False: run in the caller thread :return: the client service