21 #ifndef NDN_SOCKETTRANSPORT_H
22 #define NDN_SOCKETTRANSPORT_H
24 #include <ndn-cpp/c/common.h>
25 #include <ndn-cpp/c/errors.h>
26 #include <ndn-cpp/c/transport/transport-types.h>
27 #include "../encoding/element-reader.h"
50 static __inline
void ndn_SocketTransport_initialize
53 self->socketDescriptor = -1;
54 ndn_ElementReader_initialize(&self->elementReader, 0, buffer);
70 ndn_Error ndn_SocketTransport_connect
81 ndn_Error ndn_SocketTransport_send(
struct ndn_SocketTransport *
self,
const uint8_t *data,
size_t dataLength);
90 ndn_Error ndn_SocketTransport_receiveIsReady(
struct ndn_SocketTransport *
self,
int *receiveIsReady);
101 ndn_Error ndn_SocketTransport_receive
120 ndn_SocketTransport_processEvents
Copyright (C) 2015-2016 Regents of the University of California.
Definition: transport-types.h:30
An ndn_ElementListener struct holds a function pointer onReceivedElement.
Definition: element-reader-types.h:37
A struct ndn_DynamicUInt8Array holds a pointer to an allocated array, the length of the allocated arr...
Definition: dynamic-uint8-array-types.h:40