Searched refs:listen (Results 1 – 8 of 8) sorted by relevance
116 socket.listen(6969).unwrap(); in main()129 socket.listen(6970).unwrap() in main()165 socket.listen(6971).unwrap(); in main()186 socket.listen(6972).unwrap() in main()
118 socket.listen(1234).unwrap(); in main()136 socket.listen(1235).unwrap(); in main()
190 socket.listen(1234).unwrap(); in main()206 socket.listen(1235).unwrap(); in main()
100 socket.listen(50000).unwrap(); in main()
132 socket.listen(1234).unwrap(); in main()
176 socket.listen(1234).unwrap();
703 pub fn listen<T>(&mut self, local_endpoint: T) -> Result<(), ListenError> in listen() method2678 s.listen(LOCAL_END).unwrap(); in test_closed_reject_after_listen()2804 s.listen(LOCAL_PORT).unwrap(); in test_listen_sanity()2811 assert_eq!(s.listen(0), Err(ListenError::Unaddressable)); in test_listen_validation()2817 assert_eq!(s.listen(80), Ok(())); in test_listen_twice()2818 assert_eq!(s.listen(80), Err(ListenError::InvalidState)); in test_listen_twice()4538 s.listen(LISTEN_END).unwrap(); in test_listen()
82 * ICMP sockets can listen to ICMPv4 Port Unreachable messages, or any ICMPv4 messages with489 It connects to the given address (not a hostname) and port (e.g. `socat stdio tcp4-listen:1234`),