8 #ifndef DATAGRAMSERVICE_H_
9 #define DATAGRAMSERVICE_H_
12 #include <ibrcommon/net/vinterface.h>
96 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;
104 virtual
void send(const
char &type, const
char &flags, const
unsigned int &seqno, const
char *buf,
size_t length) throw (DatagramException) = 0;
114 virtual
size_t recvfrom(
char *buf,
size_t length,
char &type,
char &flags,
unsigned int &seqno, std::
string &address) throw (DatagramException) = 0;
133 virtual const ibrcommon::vinterface&
getInterface() const = 0;
139 virtual dtn::core::Node::Protocol
getProtocol() const = 0;
virtual ~DatagramException()
virtual const ibrcommon::vinterface & getInterface() const =0
virtual ~DatagramService()=0
const size_t expected_seqno
virtual const Parameter & getParameter() const =0
unsigned int max_seq_numbers
WrongSeqNoException(size_t exp_seqno)
virtual void send(const char &type, const char &flags, const unsigned int &seqno, const std::string &address, const char *buf, size_t length)=0
virtual const std::string getServiceTag() const
DatagramException(const std::string &what)
virtual void shutdown()=0
virtual ~WrongSeqNoException()
virtual size_t recvfrom(char *buf, size_t length, char &type, char &flags, unsigned int &seqno, std::string &address)=0
virtual dtn::core::Node::Protocol getProtocol() const =0
virtual const std::string getServiceDescription() const =0