Home
last modified time | relevance | path

Searched refs:bind (Results 1 – 9 of 9) sorted by relevance

/smoltcp-0.9.1/src/socket/
Dudp.rs146 pub fn bind<T: Into<IpListenEndpoint>>(&mut self, endpoint: T) -> Result<(), BindError> { in bind() method
580 assert_eq!(socket.bind(0), Err(BindError::Unaddressable)); in test_bind_unaddressable()
586 assert_eq!(socket.bind(1), Ok(())); in test_bind_twice()
587 assert_eq!(socket.bind(2), Err(BindError::InvalidState)); in test_bind_twice()
605 assert_eq!(socket.bind(LOCAL_PORT), Ok(())); in test_send_unaddressable()
634 assert_eq!(socket.bind(LOCAL_END), Ok(())); in test_send_dispatch()
677 assert_eq!(socket.bind(LOCAL_PORT), Ok(())); in test_recv_process()
698 assert_eq!(socket.bind(LOCAL_PORT), Ok(())); in test_peek_process()
713 assert_eq!(socket.bind(LOCAL_PORT), Ok(())); in test_recv_truncated_slice()
728 assert_eq!(socket.bind(LOCAL_PORT), Ok(())); in test_peek_truncated_slice()
[all …]
Dicmp.rs225 pub fn bind<T: Into<Endpoint>>(&mut self, endpoint: T) -> Result<(), BindError> { in bind() method
750 assert_eq!(socket.bind(Endpoint::Ident(0x1234)), Ok(())); in test_recv_process()
777 assert_eq!(socket.bind(Endpoint::Ident(0x1234)), Ok(())); in test_accept_bad_id()
798 assert_eq!(socket.bind(Endpoint::Udp(LOCAL_END_V4.into())), Ok(())); in test_accepts_udp()
1002 assert_eq!(socket.bind(Endpoint::Ident(0x1234)), Ok(())); in test_recv_process()
1034 assert_eq!(socket.bind(Endpoint::Ident(0x1234)), Ok(())); in test_accept_bad_id()
1060 assert_eq!(socket.bind(Endpoint::Udp(LOCAL_END_V6.into())), Ok(())); in test_accepts_udp()
/smoltcp-0.9.1/src/phy/sys/
Draw_socket.rs65 let res = libc::bind( in bind_interface()
/smoltcp-0.9.1/examples/
Dmulticast.rs112 socket.bind(MDNS_PORT).unwrap() in main()
Dsixlowpan.rs111 socket.bind(6969).unwrap() in main()
Dserver.rs96 socket.bind(6969).unwrap() in main()
Dping.rs156 socket.bind(icmp::Endpoint::Ident(ident)).unwrap(); in main()
/smoltcp-0.9.1/src/iface/interface/
Dtests.rs468 assert_eq!(socket.bind(68), Ok(())); in test_handle_udp_broadcast()
958 assert_eq!(socket.bind(icmp::Endpoint::Ident(ident)), Ok(())); in test_icmpv4_socket()
1285 assert_eq!(socket.bind(68), Ok(())); in test_raw_socket_with_udp_socket()
1589 assert_eq!(socket.bind(6969), Ok(())); in test_sixlowpan_udp_with_fragmentation()
/smoltcp-0.9.1/
DCHANGELOG.md76 - Use socklen_t instead of u32 for RawSocket bind() parameter. Fixes build on 32bit Android. ([#593…