21 #ifndef NDN_UNIX_TRANSPORT_H
22 #define NDN_UNIX_TRANSPORT_H
24 #include "socket-transport.h"
41 static __inline
void ndn_UnixTransport_initialize
44 ndn_SocketTransport_initialize(&self->base, buffer);
53 ndn_UnixTransport_isLocal() {
return 1; }
64 static __inline ndn_Error ndn_UnixTransport_connect
68 return ndn_SocketTransport_connect
69 (&self->base, SOCKET_UNIX, filePath, 0, elementListener);
79 static __inline ndn_Error ndn_UnixTransport_send
82 return ndn_SocketTransport_send(&self->base, data, dataLength);
100 static __inline ndn_Error
101 ndn_UnixTransport_processEvents
104 return ndn_SocketTransport_processEvents(&self->base, buffer, bufferLength);
112 static __inline ndn_Error ndn_UnixTransport_close(
struct ndn_UnixTransport *
self)
114 return ndn_SocketTransport_close(&self->base);
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
Definition: transport-types.h:43