macro_rules! new_socket_client { ($const_config: expr, $ip: expr, $port: expr, $remote_messages: ty, $local_messages: ty) => { ... }; }
Expand description
Instantiates & allocates resources for a GenericSocketClient, ready to be later started by spawn_unresponsive_client_processor!() or spawn_responsive_client_processor!().
Params:
const_config: [ConstConfig] – the configurations for the client, enforcing const time optimizations;ip: IntoString– the tcp ip to connect to;port: u16– the tcp port to connect to;RemoteMessages: [ReactiveMessagingDeserializer<>] – the type of the messages produced by the server;LocalMessage: [ReactiveMessagingSerializer<>] – the type of the messages produced by this client – should, additionally, implement theDefaulttrait.