Struct naia_server_socket::ServerAddrs
source · [−]pub struct ServerAddrs {
pub session_listen_addr: SocketAddr,
pub webrtc_listen_addr: SocketAddr,
pub public_webrtc_addr: SocketAddr,
}Expand description
List of addresses needed to start listening on a ServerSocket
Fields
session_listen_addr: SocketAddrIP Address to listen on for the signaling portion of WebRTC
webrtc_listen_addr: SocketAddrIP Address to listen on for UDP WebRTC data channels
public_webrtc_addr: SocketAddrThe public WebRTC IP address to advertise
Implementations
pub fn new(
session_listen_addr: SocketAddr,
webrtc_listen_addr: SocketAddr,
public_webrtc_addr: SocketAddr
) -> Self
pub fn new(
session_listen_addr: SocketAddr,
webrtc_listen_addr: SocketAddr,
public_webrtc_addr: SocketAddr
) -> Self
Create a new ServerSocketAddrs instance which will be used to start listening on a ServerSocket
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ServerAddrs
impl Send for ServerAddrs
impl Sync for ServerAddrs
impl Unpin for ServerAddrs
impl UnwindSafe for ServerAddrs
Blanket Implementations
Mutably borrows from an owned value. Read more