dtntunnel::DTNTunnel::BundleHeader Struct Reference

#include <DTNTunnel.h>

List of all members.


Detailed Description

Struct to encapsulate the header sent with each tunneled bundle.

Note that since it is declared as a packed struct, it can be sent over the wire as-is.

XXX/demmer if this is used for non-IP tunnels, the address fields will need to be union'd or something like that

Definition at line 72 of file DTNTunnel.h.

Public Member Functions

 BundleHeader ()
 BundleHeader (u_int8_t protocol, u_int32_t seqno, u_int32_t client_addr, u_int32_t remote_addr, u_int16_t client_port, u_int16_t remote_port)

Public Attributes

u_int8_t protocol_
u_int32_t seqno_
u_int32_t client_addr_
u_int32_t remote_addr_
u_int16_t client_port_
u_int16_t remote_port_


Constructor & Destructor Documentation

dtntunnel::DTNTunnel::BundleHeader::BundleHeader (  )  [inline]

Definition at line 73 of file DTNTunnel.h.

dtntunnel::DTNTunnel::BundleHeader::BundleHeader ( u_int8_t  protocol,
u_int32_t  seqno,
u_int32_t  client_addr,
u_int32_t  remote_addr,
u_int16_t  client_port,
u_int16_t  remote_port 
) [inline]

Definition at line 75 of file DTNTunnel.h.


Member Data Documentation

u_int8_t dtntunnel::DTNTunnel::BundleHeader::protocol_

Definition at line 90 of file DTNTunnel.h.

Referenced by dtntunnel::DTNTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().

u_int32_t dtntunnel::DTNTunnel::BundleHeader::seqno_

Definition at line 91 of file DTNTunnel.h.

Referenced by dtntunnel::TCPTunnel::Connection::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().

u_int32_t dtntunnel::DTNTunnel::BundleHeader::client_addr_

Definition at line 92 of file DTNTunnel.h.

Referenced by dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().

u_int32_t dtntunnel::DTNTunnel::BundleHeader::remote_addr_

Definition at line 93 of file DTNTunnel.h.

Referenced by dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().

u_int16_t dtntunnel::DTNTunnel::BundleHeader::client_port_

Definition at line 94 of file DTNTunnel.h.

Referenced by dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().

u_int16_t dtntunnel::DTNTunnel::BundleHeader::remote_port_

Definition at line 95 of file DTNTunnel.h.

Referenced by dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::UDPTunnel::Listener::run(), and dtntunnel::TCPTunnel::Connection::run().


The documentation for this struct was generated from the following file:
Generated on Fri Dec 22 14:48:05 2006 for DTN Reference Implementation by  doxygen 1.5.1