/** * Receive data and terminate if the stream is bad. */ void TCPTransportTest::Receive() { m_stream_ok = m_transport->Receive(); if (!m_stream_ok) m_ss->Terminate(); }
void SimpleE133Device::ReceiveTCPData() { if (!m_in_transport->Receive()) { OLA_WARN << "TCP STREAM IS BAD!!!"; SocketClosed(); } }