pub fn serve(
bind_ip: &str,
port: u16,
options: ServerOptions
) -> Result<Receiver<LogMsg>, ServerError>
Expand description
Listen to multiple SDK:s connecting to us over TCP.
fn main() {
let log_msg_rx = serve("0.0.0.0", re_sdk_comms::DEFAULT_SERVER_PORT, ServerOptions::default()).unwrap();
}
Internally spawns a thread that listens for incoming TCP connections on the given bind_ip
and port
and one thread per connected client.