21 #ifndef NDN_UDP_TRANSPORT_H
22 #define NDN_UDP_TRANSPORT_H
24 #include "socket-transport.h"
41 static __inline
void ndn_UdpTransport_initialize
44 ndn_SocketTransport_initialize(&self->base, buffer);
53 ndn_UdpTransport_isLocal() {
return 0; }
65 static __inline ndn_Error ndn_UdpTransport_connect
69 return ndn_SocketTransport_connect
70 (&self->base, SOCKET_UDP, host, port, elementListener);
80 static __inline ndn_Error ndn_UdpTransport_send
83 return ndn_SocketTransport_send(&self->base, data, dataLength);
101 static __inline ndn_Error
102 ndn_UdpTransport_processEvents
105 return ndn_SocketTransport_processEvents(&self->base, buffer, bufferLength);
113 static __inline ndn_Error ndn_UdpTransport_close(
struct ndn_UdpTransport *
self)
115 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:39