Struct naia_server::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
) -> ServerAddrs
pub fn new( session_listen_addr: SocketAddr, webrtc_listen_addr: SocketAddr, public_webrtc_url: &str ) -> ServerAddrs
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 moresource§impl Default for ServerAddrs
impl Default for ServerAddrs
source§fn default() -> ServerAddrs
fn default() -> ServerAddrs
Returns the “default value” for a type. Read more