pub fn new(rx_buffer: SocketBuffer<'a, 'b>,
               tx_buffer: SocketBuffer<'a, 'b>) -> Socket<'a, 'b> {
        Socket::Udp(UdpSocket {
            meta:      SocketMeta::default(),
            endpoint:  IpEndpoint::default(),
            rx_buffer: rx_buffer,
            tx_buffer: tx_buffer,
            hop_limit: None
        })
    }
/// Create an UDP socket with the given buffers.
Create an UDP socket with the given buffers.
Create an UDP socket with the given buffers .
pub fn new(rx_buffer: SocketBuffer<'a, 'b>,
               tx_buffer: SocketBuffer<'a, 'b>) -> Socket<'a, 'b> {
        Socket::Udp(UdpSocket {
            meta:      SocketMeta::default(),
            endpoint:  IpEndpoint::default(),
            rx_buffer: rx_buffer,
            tx_buffer: tx_buffer,
            hop_limit: None
        })
    }
pub fn new ( rx_buffer : SocketBuffer < ' a , ' b > , tx_buffer : SocketBuffer < ' a , ' b > ) -> Socket < ' a , ' b > { Socket :: Udp ( UdpSocket { meta : SocketMeta :: default ( ) , endpoint : IpEndpoint :: default ( ) , rx_buffer : rx_buffer , tx_buffer : tx_buffer , hop_limit : None } ) }
Create an UDP socket with the given buffers.
Create an UDP socket with the given buffers .
rx_buffer
SocketBuffer<'a, 'b>
tx_buffer
SocketBuffer<'a, 'b>
rx_buffer
SocketBuffer<'a, 'b>
tx_buffer
SocketBuffer<'a, 'b>