21 #ifndef NDN_TCP_TRANSPORT_H
22 #define NDN_TCP_TRANSPORT_H
24 #include "socket-transport.h"
41 static __inline
void ndn_TcpTransport_initialize
44 ndn_SocketTransport_initialize(&self->base, buffer);
60 ndn_TcpTransport_isLocal(
const char *host,
int *result);
72 static __inline ndn_Error ndn_TcpTransport_connect
76 return ndn_SocketTransport_connect
77 (&self->base, SOCKET_TCP, host, port, elementListener);
87 static __inline ndn_Error ndn_TcpTransport_send
90 return ndn_SocketTransport_send(&self->base, data, dataLength);
108 static __inline ndn_Error
109 ndn_TcpTransport_processEvents
112 return ndn_SocketTransport_processEvents(&self->base, buffer, bufferLength);
120 static __inline ndn_Error ndn_TcpTransport_close(
struct ndn_TcpTransport *
self)
122 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:35