Struct asio::SocketListener [] [src]

pub struct SocketListener<P> {
    // some fields omitted
}

Methods

impl<P: Protocol> SocketListener<P>
[src]

fn new<T: IoObject>(io: &T, pro: P) -> Result<SocketListener<P>>

fn accept<S: FromRawFd<P>>(&self) -> Result<(S, P::Endpoint)>

fn async_accept<S: FromRawFd<P>, F: Handler<(S, P::Endpoint)>>(&self, handler: F)

fn bind(&self, ep: &P::Endpoint) -> Result<()>

fn cancel(&self)

fn listen(&self) -> Result<()>

fn local_endpoint(&self) -> Result<P::Endpoint>

fn io_control<T: IoControl>(&self, cmd: &mut T) -> Result<()>

fn get_non_blocking(&self) -> Result<bool>

fn get_option<T: GetSocketOption<P>>(&self) -> Result<T>

fn protocol(&self) -> P

fn set_non_blocking(&self, on: bool) -> Result<()>

fn set_option<T: SetSocketOption<P>>(&self, cmd: T) -> Result<()>

Trait Implementations

impl<P> IoObject for SocketListener<P>
[src]

fn io_service(&self) -> &IoService

Returns a IoService associated with this object.

impl<P: Protocol> FromRawFd<P> for SocketListener<P>
[src]

unsafe fn from_raw_fd<T: IoObject>(io: &T, pro: P, fd: RawFd) -> SocketListener<P>

impl<P> AsRawFd for SocketListener<P>
[src]

fn as_raw_fd(&self) -> RawFd

Extracts the raw file descriptor. Read more