Struct native::io::net::TcpListenerExperimental [-]  [+] [src]

pub struct TcpListener {
    // some fields omitted
}

Methods

impl TcpListener

fn bind(addr: SocketAddr) -> IoResult<TcpListener>

fn fd(&self) -> sock_t

fn native_listen(self, backlog: int) -> IoResult<TcpAcceptor>

Trait Implementations

impl RtioTcpListener for TcpListener

fn listen(self: Box<TcpListener>) -> IoResult<Box<RtioTcpAcceptor + Send>>

impl RtioSocket for TcpListener

fn socket_name(&mut self) -> IoResult<SocketAddr>