Lines Matching refs:socket
5 use smoltcp::socket::tcp;
173 let mut socket = socket_set.get::<tcp::Socket>(server_handle); localVariable
174 if !socket.is_active() && !socket.is_listening() {
176 socket.listen(1234).unwrap();
181 if socket.can_recv() {
182 socket.close();
188 let mut socket = socket_set.get::<tcp::Socket>(client_handle); localVariable
189 if !socket.is_open() {
191 socket
201 if socket.can_send() {
202 socket
205 socket.close();