#include <string>#include <sys/types.h>#include <netinet/in.h>#include "Bundle.h"#include "BundleProtocol.h"#include "PrimaryBlockProcessor.h"#include "naming/EndpointID.h"#include "SDNV.h"Go to the source code of this file.
Namespaces | |
| namespace | dtn |
Namespace for the dtn daemon source code. | |
Defines | |
| #define | PBP_READ_SDNV(location) |
| #define | PBP_WRITE_SDNV(value) |
| #define PBP_READ_SDNV | ( | location | ) |
{ \
int sdnv_len = SDNV::decode(buf, len, location); \
if (sdnv_len < 0) \
goto tooshort; \
buf += sdnv_len; \
len -= sdnv_len; }
Referenced by dtn::PrimaryBlockProcessor::consume().
| #define PBP_WRITE_SDNV | ( | value | ) |
{ \
int sdnv_len = SDNV::encode(value, buf, len); \
ASSERT(sdnv_len > 0); \
buf += sdnv_len; \
len -= sdnv_len; }
Referenced by dtn::PrimaryBlockProcessor::generate_primary().
1.6.3