Struct naia_server_socket::ServerAddrs
source · pub struct ServerAddrs {
pub session_listen_addr: SocketAddr,
pub webrtc_listen_addr: SocketAddr,
pub public_webrtc_url: String,
}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_url: StringThe public WebRTC IP address to advertise
Implementations§
source§impl ServerAddrs
impl ServerAddrs
sourcepub fn new(
session_listen_addr: SocketAddr,
webrtc_listen_addr: SocketAddr,
public_webrtc_url: &str
) -> Self
pub fn new(
session_listen_addr: SocketAddr,
webrtc_listen_addr: SocketAddr,
public_webrtc_url: &str
) -> Self
Create a new ServerSocketAddrs instance which will be used to start listening on a ServerSocket
Trait Implementations§
source§impl Clone for ServerAddrs
impl Clone for ServerAddrs
source§fn clone(&self) -> ServerAddrs
fn clone(&self) -> ServerAddrs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more