Exemplo n.º 1
0
void
TcpTransport::processEvents()
{
  uint8_t buffer[MAX_NDN_PACKET_SIZE];
  ndn_Error error;
  if ((error = ndn_TcpTransport_processEvents
       (transport_.get(), buffer, sizeof(buffer))))
    throw runtime_error(ndn_getErrorString(error));
}
Exemplo n.º 2
0
ndn_Error
TcpTransportLite::processEvents(uint8_t *buffer, size_t bufferLength)
{
    return ndn_TcpTransport_processEvents(this, buffer, bufferLength);
}