8 #ifndef DATAGRAMSERVICE_H_
9 #define DATAGRAMSERVICE_H_
86 virtual
void send(const
char &type, const
char &flags, const
unsigned int &seqno, const std::
string &address, const
char *buf,
size_t length) throw (DatagramException) = 0;
94 virtual
void send(const
char &type, const
char &flags, const
unsigned int &seqno, const
char *buf,
size_t length) throw (DatagramException) = 0;
104 virtual
size_t recvfrom(
char *buf,
size_t length,
char &type,
char &flags,
unsigned int &seqno, std::
string &address) throw (DatagramException) = 0;
123 virtual const ibrcommon::vinterface&
getInterface() const = 0;
129 virtual dtn::core::Node::Protocol
getProtocol() const = 0;