22 #ifndef NATIVESESSION_H_
23 #define NATIVESESSION_H_
86 static const std::string
TAG;
113 const dtn::data::EID&
getNodeEID() const throw ();
130 void addEndpoint(const std::
string &suffix) throw (NativeSessionException);
135 void removeEndpoint(const std::
string &suffix) throw (NativeSessionException);
141 void addRegistration(const dtn::data::EID &eid) throw (NativeSessionException);
167 void load(
RegisterIndex ri, const dtn::data::BundleID &
id) throw (BundleNotFoundException);
192 void delivered(const dtn::data::BundleID &
id) const throw (BundleNotFoundException);
218 void write(
RegisterIndex ri, const
char *buf, const
size_t len, const
size_t offset = std::
string::npos) throw ();
229 void read(
RegisterIndex ri,
char *buf,
size_t &len, const
size_t offset = 0) throw ();
235 void receive() throw (NativeSessionException);
241 class BundleReceiver : public dtn::core::EventReceiver
245 virtual ~BundleReceiver();
275 NativeSessionCallback *_session_cb;
276 NativeSerializerCallback *_serializer_cb;