lyanne 0.6.2

Tick-based communication library for server-client architectures.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::net::SocketAddr;

/// Properties to bind a server with Tcp authenticator.
#[cfg(feature = "server")]
pub struct AuthTcpServerProperties {
    /// Addr to bind the Tcp socket.
    pub server_addr: SocketAddr,
}

/// Properties to connect a client with Tcp authenticator.
#[cfg(feature = "client")]
pub struct AuthTcpClientProperties {
    /// Addr to the server Tcp socket.
    pub server_addr: SocketAddr,
}