Lines Matching refs:socket
724 socket: Socket<'static>, field
731 &self.socket in deref()
737 &mut self.socket in deref_mut()
757 s.socket.process(&mut s.cx, &ip_repr, &udp_repr, &payload) in send()
765 while s.socket.poll_at(&mut s.cx) <= PollAt::Time(timestamp) { in recv()
767 .socket in recv()
796 ($socket:ident, $repr:expr) =>
797 (send!($socket, time 0, $repr));
798 ($socket:ident, time $time:expr, $repr:expr) =>
799 (send(&mut $socket, Instant::from_millis($time), $repr));
803 ($socket:ident, $reprs:expr) => ({
804 recv!($socket, time 0, $reprs);
806 ($socket:ident, time $time:expr, $reprs:expr) => ({
807 recv(&mut $socket, Instant::from_millis($time), &$reprs);
977 fn socket() -> TestSocket { in socket() function
981 socket: s, in socket()
992 socket: s, in socket_different_port()
998 let mut s = socket(); in socket_bound()
1019 let mut s = socket(); in test_bind()
1089 let mut s = socket(); in test_discover_retransmit()
1104 let mut s = socket(); in test_request_retransmit()
1130 let mut s = socket(); in test_request_timeout()
1151 let mut s = socket(); in test_request_nak()