Macro rumtk_create_server

Source
macro_rules! rumtk_create_server {
    ( $port:expr ) => { ... };
    ( $ip:expr, $port:expr ) => { ... };
    ( $ip:expr, $port:expr, $threads:expr ) => { ... };
}
Expand description

Macro for creating a server instance.

If a port is passed, we return the default configured [tcp::RUMServerHandle] instance exposed to the world on all interfaces.

If an ip and port is passed, we create an instance of [tcp::RUMServerHandle] bound to that ip/port combo using the default number of threads on the system which should match roughly to the number of cores/threads.

Alternatively, you can pass the ip, port, and threads. In such a case, the constructed [tcp::RUMServerHandle] will use only the number of threads requested.