22 #ifndef LOWPANDATAGRAMSERVICE_H_
23 #define LOWPANDATAGRAMSERVICE_H_
36 static const std::string
TAG;
58 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);
65 virtual
void send(const
char &type, const
char &flags, const
unsigned int &seqno, const
char *buf,
size_t length) throw (DatagramException);
75 virtual
size_t recvfrom(
char *buf,
size_t length,
char &type,
char &flags,
unsigned int &seqno, std::
string &address) throw (DatagramException);
94 virtual const ibrcommon::vinterface&
getInterface() const;
109 static const std::
string encode(const ibrcommon::vaddress &addr);
110 static
void decode(const std::
string &identifier, ibrcommon::vaddress &addr);
112 ibrcommon::vaddress _addr_broadcast;
115 const ibrcommon::vinterface _iface;
118 ibrcommon::vsocket _vsocket;