示例#1
0
/**
 * 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();
}
示例#2
0
void SimpleE133Device::ReceiveTCPData() {
  if (!m_in_transport->Receive()) {
    OLA_WARN << "TCP STREAM IS BAD!!!";
    SocketClosed();
  }
}