Lines Matching refs:socket
9 use smoltcp::socket::tcp;
66 let socket = sockets.get_mut::<tcp::Socket>(tcp_handle); in main() localVariable
67 socket in main()
76 let socket = sockets.get_mut::<tcp::Socket>(tcp_handle); in main() localVariable
77 if socket.is_active() && !tcp_active { in main()
79 } else if !socket.is_active() && tcp_active { in main()
83 tcp_active = socket.is_active(); in main()
85 if socket.may_recv() { in main()
86 let data = socket in main()
101 if socket.can_send() && !data.is_empty() { in main()
106 socket.send_slice(&data[..]).unwrap(); in main()
108 } else if socket.may_send() { in main()
110 socket.close(); in main()