macro_rules! new_socket_server {
    ($const_config:    expr,
     $interface_ip:    expr,
     $port:            expr,
     $remote_messages: ty,
     $local_messages:  ty) => { ... };
}
Expand description

Instantiates & allocates resources for a GenericSocketServer, ready to be later started by spawn_unresponsive_server_processor!() or spawn_responsive_server_processor!().
Params:

  • const_config: [ConstConfig] – the configurations for the server, enforcing const time optimizations;
  • interface_ip: IntoString – the interface to listen to incoming connections;
  • port: u16 – the port to listen to incoming connections;
  • RemoteMessages: [ReactiveMessagingDeserializer<>] – the type of the messages produced by the clients;
  • LocalMessage: [ReactiveMessagingSerializer<>] – the type of the messages produced by this server – should, additionally, implement the Default trait.