Lines Matching refs:srv
11 let srv = assert_ok!(TcpSocket::new_v4()); in basic_usage_v4() localVariable
12 assert_ok!(srv.bind(addr)); in basic_usage_v4()
14 let srv = assert_ok!(srv.listen(128)); in basic_usage_v4() localVariable
17 let addr = srv.local_addr().unwrap(); in basic_usage_v4()
22 let _ = assert_ok!(srv.accept().await); in basic_usage_v4()
29 let srv = assert_ok!(TcpSocket::new_v6()); in basic_usage_v6() localVariable
30 assert_ok!(srv.bind(addr)); in basic_usage_v6()
32 let srv = assert_ok!(srv.listen(128)); in basic_usage_v6() localVariable
35 let addr = srv.local_addr().unwrap(); in basic_usage_v6()
40 let _ = assert_ok!(srv.accept().await); in basic_usage_v6()
47 let srv = assert_ok!(TcpSocket::new_v4()); in bind_before_connect() localVariable
48 assert_ok!(srv.bind(any_addr)); in bind_before_connect()
50 let srv = assert_ok!(srv.listen(128)); in bind_before_connect() localVariable
53 let addr = srv.local_addr().unwrap(); in bind_before_connect()
59 let _ = assert_ok!(srv.accept().await); in bind_before_connect()