Struct netcode::ServerImpl
[−]
[src]
pub struct ServerImpl<I> where I: Socket<I> { /* fields omitted */ }Methods
impl<I> ServerImpl<I> where I: Socket<I>[src]
fn new<A>(local_addr: A,
max_clients: usize,
private_key: &[u8])
-> Result<ServerImpl<I>, CreateError> where A: ToSocketAddrs
max_clients: usize,
private_key: &[u8])
-> Result<ServerImpl<I>, CreateError> where A: ToSocketAddrs
fn update(&mut self,
elapsed: f64,
out_packet: &mut [u8])
-> Result<Option<UpdateEvent>, UpdateError>
elapsed: f64,
out_packet: &mut [u8])
-> Result<Option<UpdateEvent>, UpdateError>