
#include <ll_packet.h>

Public Types | |
| typedef ConexusPointer< Packet > | pointer |
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 |
| typedef ConexusPointer<Packet> Conexus::LL::Packet::pointer |
Reimplemented from Conexus::Socket.
| Conexus::LL::Packet::Packet | ( | int | protocol = ETH_P_IP, |
|
| int | type = SOCK_DGRAM | |||
| ) | [protected] |
Referenced by create().
| Conexus::LL::Packet::~Packet | ( | ) | throw () [virtual] |
| void Conexus::LL::Packet::bind | ( | Address & | a | ) | throw ( bind_exception ) [virtual] |
References Conexus::Socket::bind().
| void Conexus::LL::Packet::bind | ( | ) | throw ( bind_exception ) [virtual] |
Reimplemented from Conexus::Socket.
References m_address, m_protocol, Conexus::LL::Address::set_interface(), and Conexus::LL::Address::set_protocol().
| 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 | ) |
References Conexus::Socket::change_state(), Conexus::ENDPOINT_OPENED, Conexus::Endpoint::is_closed(), and Conexus::FileDescriptor::m_fd.
Referenced by set_interface().
| 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] |
Address Conexus::LL::Packet::m_address [protected] |
Referenced by bind(), and set_interface().
int Conexus::LL::Packet::m_protocol [protected] |
1.5.8