#include <DatagramService.h>
|
virtual | ~DatagramService ()=0 |
|
virtual void | bind ()=0 throw (DatagramException) |
|
virtual void | shutdown ()=0 |
|
virtual void | send (const char &type, const char &flags, const unsigned int &seqno, const std::string &address, const char *buf, size_t length)=0 throw (DatagramException) |
|
virtual void | send (const char &type, const char &flags, const unsigned int &seqno, const char *buf, size_t length)=0 throw (DatagramException) |
|
virtual size_t | recvfrom (char *buf, size_t length, char &type, char &flags, unsigned int &seqno, std::string &address)=0 throw (DatagramException) |
|
virtual const std::string | getServiceTag () const =0 |
|
virtual const std::string | getServiceDescription () const =0 |
|
virtual const
ibrcommon::vinterface & | getInterface () const =0 |
|
virtual dtn::core::Node::Protocol | getProtocol () const =0 |
|
virtual const Parameter & | getParameter () const =0 |
|
Definition at line 40 of file DatagramService.h.
Enumerator |
---|
SEGMENT_FIRST |
|
SEGMENT_LAST |
|
SEGMENT_MIDDLE |
|
Definition at line 49 of file DatagramService.h.
dtn::net::DatagramService::~DatagramService |
( |
| ) |
|
|
pure virtual |
virtual const Parameter& dtn::net::DatagramService::getParameter |
( |
| ) |
const |
|
pure virtual |
virtual const std::string dtn::net::DatagramService::getServiceDescription |
( |
| ) |
const |
|
pure virtual |
virtual const std::string dtn::net::DatagramService::getServiceTag |
( |
| ) |
const |
|
pure virtual |
virtual size_t dtn::net::DatagramService::recvfrom |
( |
char * |
buf, |
|
|
size_t |
length, |
|
|
char & |
type, |
|
|
char & |
flags, |
|
|
unsigned int & |
seqno, |
|
|
std::string & |
address |
|
) |
| throw (DatagramException) |
|
pure virtual |
virtual void dtn::net::DatagramService::send |
( |
const char & |
type, |
|
|
const char & |
flags, |
|
|
const unsigned int & |
seqno, |
|
|
const std::string & |
address, |
|
|
const char * |
buf, |
|
|
size_t |
length |
|
) |
| throw (DatagramException) |
|
pure virtual |
virtual void dtn::net::DatagramService::send |
( |
const char & |
type, |
|
|
const char & |
flags, |
|
|
const unsigned int & |
seqno, |
|
|
const char * |
buf, |
|
|
size_t |
length |
|
) |
| throw (DatagramException) |
|
pure virtual |
Send the payload as datagram to all neighbors (broadcast)
- Parameters
-
buf | The buffer to send. |
length | The number of available bytes in the buffer. |
- Exceptions
-
If | the transmission wasn't successful this method will throw an exception. |
Implemented in dtn::net::LOWPANDatagramService, and dtn::net::UDPDatagramService.
virtual void dtn::net::DatagramService::shutdown |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: