Struct asio::DgramSocket
[−]
[src]
pub struct DgramSocket<P> { // some fields omitted }
Methods
impl<P: Protocol> DgramSocket<P>
[src]
fn new<T: IoObject>(io: &T, pro: P) -> Result<DgramSocket<P>>
fn at_mark(&self) -> Result<bool>
fn async_receive<F: Handler<usize>>(&self, buf: &mut [u8], flags: i32, handler: F)
fn async_receive_from<F: Handler<(usize, P::Endpoint)>>(&self, buf: &mut [u8], flags: i32, handler: F)
fn async_send<F: Handler<usize>>(&self, buf: &[u8], flags: i32, handler: F)
fn async_send_to<F: Handler<usize>>(&self, buf: &[u8], flags: i32, ep: P::Endpoint, handler: F)
fn available(&self) -> Result<usize>
fn bind(&self, ep: &P::Endpoint) -> Result<()>
fn cancel(&self)
fn get_non_blocking(&self) -> Result<bool>
fn get_option<C: GetSocketOption<P>>(&self) -> Result<C>
fn io_control<C: IoControl>(&self, cmd: &mut C) -> Result<()>
fn local_endpoint(&self) -> Result<P::Endpoint>
fn protocol(&self) -> P
fn receive(&self, buf: &mut [u8], flags: i32) -> Result<usize>
fn receive_from(&self, buf: &mut [u8], flags: i32) -> Result<(usize, P::Endpoint)>
fn remote_endpoint(&self) -> Result<P::Endpoint>
fn send(&self, buf: &[u8], flags: i32) -> Result<usize>
fn send_to(&self, buf: &[u8], flags: i32, ep: P::Endpoint) -> Result<usize>
fn set_non_blocking(&self, on: bool) -> Result<()>
fn set_option<C: SetSocketOption<P>>(&self, cmd: C) -> Result<()>
fn shutdown(&self, how: Shutdown) -> Result<()>
Trait Implementations
impl<P> IoObject for DgramSocket<P>
[src]
fn io_service(&self) -> &IoService
Returns a IoService
associated with this object.