Lines Matching refs:socket
467 let socket = sockets.get_mut::<udp::Socket>(socket_handle); in test_handle_udp_broadcast() localVariable
468 assert_eq!(socket.bind(68), Ok(())); in test_handle_udp_broadcast()
469 assert!(!socket.can_recv()); in test_handle_udp_broadcast()
470 assert!(socket.can_send()); in test_handle_udp_broadcast()
496 let socket = sockets.get_mut::<udp::Socket>(socket_handle); in test_handle_udp_broadcast() localVariable
497 assert!(socket.can_recv()); in test_handle_udp_broadcast()
499 socket.recv(), in test_handle_udp_broadcast()
956 let socket = sockets.get_mut::<icmp::Socket>(socket_handle); in test_icmpv4_socket() localVariable
958 assert_eq!(socket.bind(icmp::Endpoint::Ident(ident)), Ok(())); in test_icmpv4_socket()
1000 let socket = sockets.get_mut::<icmp::Socket>(socket_handle); in test_icmpv4_socket() localVariable
1001 assert!(socket.can_recv()); in test_icmpv4_socket()
1003 socket.recv(), in test_icmpv4_socket()
1284 let socket = sockets.get_mut::<udp::Socket>(udp_socket_handle); in test_raw_socket_with_udp_socket() localVariable
1285 assert_eq!(socket.bind(68), Ok(())); in test_raw_socket_with_udp_socket()
1286 assert!(!socket.can_recv()); in test_raw_socket_with_udp_socket()
1287 assert!(socket.can_send()); in test_raw_socket_with_udp_socket()
1355 let socket = sockets.get_mut::<udp::Socket>(udp_socket_handle); in test_raw_socket_with_udp_socket() localVariable
1356 assert!(socket.can_recv()); in test_raw_socket_with_udp_socket()
1358 socket.recv(), in test_raw_socket_with_udp_socket()
1588 let socket = sockets.get_mut::<udp::Socket>(udp_socket_handle); in test_sixlowpan_udp_with_fragmentation() localVariable
1589 assert_eq!(socket.bind(6969), Ok(())); in test_sixlowpan_udp_with_fragmentation()
1590 assert!(!socket.can_recv()); in test_sixlowpan_udp_with_fragmentation()
1591 assert!(socket.can_send()); in test_sixlowpan_udp_with_fragmentation()
1633 let socket = sockets.get_mut::<udp::Socket>(udp_socket_handle); in test_sixlowpan_udp_with_fragmentation() localVariable
1638 socket.recv(), in test_sixlowpan_udp_with_fragmentation()