[src]

Struct rustuv::net::UdpWatcher

pub struct UdpWatcher {
    handle: *uv_udp_t,
    home: HomeHandle,
    // some fields omitted
}

UDP implementation

Fields

handle
home

Methods

impl UdpWatcher

fn bind(io: &mut UvIoFactory, address: SocketAddr) -> Result<UdpWatcher, UvError>

Trait Implementations

impl UvHandle<uv_udp_t> for UdpWatcher

fn uv_handle(&self) -> *uv_udp_t

fn uv_loop(&self) -> Loop

fn alloc(_: Option<Self>, ty: uv_handle_type) -> *T

unsafe fn from_uv_handle<'a>(h: &'a *T) -> &'a mut Self

fn install(~self) -> ~Self

fn close_async_(&mut self)

fn close(&mut self)

impl HomingIO for UdpWatcher

fn home<'r>(&'r mut self) -> &'r mut HomeHandle

fn go_to_IO_home(&mut self) -> uint

This function will move tasks to run on their home I/O scheduler. Note that this function does not pin the task to the I/O scheduler, but rather it simply moves it to running on the I/O scheduler.

fn fire_homing_missile(&mut self) -> HomingMissile

Fires a single homing missile, returning another missile targeted back at the original home of this task. In other words, this function will move the local task to its I/O scheduler and then return an RAII wrapper which will return the task home.

impl RtioSocket for UdpWatcher

fn socket_name(&mut self) -> Result<SocketAddr, IoError>

impl RtioUdpSocket for UdpWatcher

fn recvfrom(&mut self, buf: &mut [u8]) -> Result<(uint, SocketAddr), IoError>

fn sendto(&mut self, buf: &[u8], dst: SocketAddr) -> Result<(), IoError>

fn join_multicast(&mut self, multi: IpAddr) -> Result<(), IoError>

fn leave_multicast(&mut self, multi: IpAddr) -> Result<(), IoError>

fn loop_multicast_locally(&mut self) -> Result<(), IoError>

fn dont_loop_multicast_locally(&mut self) -> Result<(), IoError>

fn multicast_time_to_live(&mut self, ttl: int) -> Result<(), IoError>

fn time_to_live(&mut self, ttl: int) -> Result<(), IoError>

fn hear_broadcasts(&mut self) -> Result<(), IoError>

fn ignore_broadcasts(&mut self) -> Result<(), IoError>

fn clone(&self) -> ~RtioUdpSocket<Send>

impl Drop for UdpWatcher

fn drop(&mut self)