conexus logo

Conexus::LL::Packet Class Reference
[Conexus I/O Endpoints]

A link-layer packet endpoint. More...

#include <ll_packet.h>

Inheritance diagram for Conexus::LL::Packet:

Inheritance graph
[legend]

List of all members.

Public Types

typedef ConexusPointer< Packetpointer

Public Member Functions

 CONEXUS_ENDPOINT_GENERIC_CREATE ()
virtual ~Packet () throw ()
virtual void bind () throw ( bind_exception )
virtual void bind (Address &a) throw ( bind_exception )
void set_interface (int)
void set_interface (const std::string)
int interface_index (const std::string name)
std::string interface_name (int ifindex)
std::vector< std::string > interface_names ()
virtual size_t input_available () throw ()

Static Public Member Functions

static pointer create (int protocol=ETH_P_IP, int type=SOCK_DGRAM)

Protected Member Functions

 Packet (int protocol=ETH_P_IP, int type=SOCK_DGRAM)
virtual size_t write_data (const Data data, Timeout timeout) throw ( write_exception )

Protected Attributes

Address m_address
int m_protocol


Detailed Description

A link-layer packet endpoint.

Author:
Rick L Vinyard Jr

Member Typedef Documentation

typedef ConexusPointer<Packet> Conexus::LL::Packet::pointer

Reimplemented from Conexus::Socket.


Constructor & Destructor Documentation

Conexus::LL::Packet::Packet ( int  protocol = ETH_P_IP,
int  type = SOCK_DGRAM 
) [protected]

Referenced by create().

Conexus::LL::Packet::~Packet (  )  throw () [virtual]


Member Function Documentation

void Conexus::LL::Packet::bind ( Address a  )  throw ( bind_exception ) [virtual]

void Conexus::LL::Packet::bind (  )  throw ( bind_exception ) [virtual]

Conexus::LL::Packet::CONEXUS_ENDPOINT_GENERIC_CREATE (  ) 

Packet::pointer Conexus::LL::Packet::create ( int  protocol = ETH_P_IP,
int  type = SOCK_DGRAM 
) [static]

References Packet().

size_t Conexus::LL::Packet::input_available (  )  throw () [virtual]

Reimplemented from Conexus::Endpoint.

int Conexus::LL::Packet::interface_index ( const std::string  name  ) 

std::string Conexus::LL::Packet::interface_name ( int  ifindex  ) 

std::vector< std::string > Conexus::LL::Packet::interface_names (  ) 

void Conexus::LL::Packet::set_interface ( const std::string  ifname  ) 

void Conexus::LL::Packet::set_interface ( int  ifindex  ) 

References interface_name().

size_t Conexus::LL::Packet::write_data ( const Data  data,
Timeout  timeout 
) throw ( write_exception ) [protected, virtual]

Reimplemented from Conexus::Socket.

References Conexus::Socket::writeto().


Member Data Documentation

Referenced by bind(), and set_interface().

Reimplemented from Conexus::Socket.

Referenced by bind().


The documentation for this class was generated from the following files:

Generated on Wed Jul 8 15:51:28 2009 for conexus by doxygen 1.5.8