pub fn tcp_connected(&mut self) -> Result<bool, Error<TcpStack::Error>> {
        if self.socket.is_none() {
            return Ok(false);
        }

        let socket = self.socket.as_ref().unwrap();
        self.network_stack
            .is_connected(socket)
            .map_err(|err| Error::Network(err))
    }
/// Determine if an TCP connection exists and is connected.
Determine if an TCP connection exists and is connected.
Determine if an TCP connection exists and is connected .
pub fn tcp_connected(&mut self) -> Result<bool, Error<TcpStack::Error>> {
        if self.socket.is_none() {
            return Ok(false);
        }
        let socket = self.socket.as_ref().unwrap();
        self.network_stack
            .is_connected(socket)
            .map_err(|err| Error::Network(err))
    }
pub fn tcp_connected ( & mut self ) -> Result < bool , Error < TcpStack :: Error > > { if self . socket . is_none ( ) { return Ok ( false ) ; } let socket = self . socket . as_ref ( ) . unwrap ( ) ; self . network_stack . is_connected ( socket ) . map_err ( | err | Error :: Network ( err ) ) }
Determine if an TCP connection exists and is connected.
Determine if an TCP connection exists and is connected .
&mut self