Struct rich_sdl2_net_rust::sock::set::SocketSet [−][src]
pub struct SocketSet<'net> { /* fields omitted */ }
Expand description
A socket set to observe a socket.
Implementations
Constructs a new socket set with the capacity.
Returns the number of the active sockets in the socket set. Await timeout
milliseconds until a socket become active.
Returns all the active sockets in the set.
Reserves capacity for at least additional
more elements.
pub fn push<'socket>(&mut self, socket: GeneralSocket<'socket>) where
'net: 'socket,
'socket: 'set,
pub fn push<'socket>(&mut self, socket: GeneralSocket<'socket>) where
'net: 'socket,
'socket: 'set,
Appends a tcp/udp socket.
Removes a registered socket.