#include <socket.hh>
Public Types | |
typedef address_t::sockaddr_t | sockaddr_t |
typedef address_t | addr_t |
typedef u_int16_t | port_t |
Public Member Functions | |
Socket () | |
Socket (unsigned mtu) | |
Socket (unsigned mtu, const addr_t &addr, port_t port) | |
Socket (unsigned mtu, const std::string &host, port_t port) | |
Socket (unsigned mtu, const char *host, port_t port) | |
void | close () |
unsigned | mtu () const |
void | set_mtu (unsigned mtu) |
void | bind_to_device (const std::string &name) |
void | set_multicast (const RealInterfaceInfo &info) |
void | set_priority () |
void | bind (const sockaddr_t &sin) |
void | bind_multicast (const RealInterfaceInfo &info, const address_t &a, port_t port) |
void | bind (const addr_t &addr, port_t port, unsigned index=0) |
void | connect (const sockaddr_t &sin) |
void | connect (const addr_t &addr, port_t port) |
utl::Data | receive (address_t &sender) const |
void | send (const utl::ConstData &d) const |
void | set_baddr (const address_t &a) |
void | sendto (const utl::ConstData &d, const address_t::sockaddr_t &s) const |
void | sendto_bcast (const utl::ConstData &d) const |
sch::IOEvent::p_t | read_p () const |
sch::IOEvent::p_t | write_p () const |
bool | operator< (const This &rhs) const |
Static Public Member Functions | |
static const This & | dummy () |
Private Types | |
enum | _dummy_values { _dummy_val } |
typedef Socket | This |
Private Member Functions | |
Socket (_dummy_values) | |
void | init () |
Private Attributes | |
int | _fd |
unsigned | _mtu |
address_t | _baddr |
unsigned | _index |
Static Private Attributes | |
static This | _dummy |
typedef Socket olsr::sys::Socket::This [private] |
typedef address_t olsr::sys::Socket::addr_t |
typedef u_int16_t olsr::sys::Socket::port_t |
enum olsr::sys::Socket::_dummy_values [private] |
olsr::sys::Socket::Socket | ( | _dummy_values | ) | [inline, private] |
olsr::sys::Socket::Socket | ( | ) | [inline] |
olsr::sys::Socket::Socket | ( | unsigned | mtu | ) | [inline] |
olsr::sys::Socket::Socket | ( | unsigned | mtu, | |
const std::string & | host, | |||
port_t | port | |||
) | [inline] |
olsr::sys::Socket::Socket | ( | unsigned | mtu, | |
const char * | host, | |||
port_t | port | |||
) | [inline] |
void olsr::sys::Socket::close | ( | ) | [inline] |
unsigned olsr::sys::Socket::mtu | ( | ) | const [inline] |
void olsr::sys::Socket::set_mtu | ( | unsigned | mtu | ) | [inline] |
void olsr::sys::Socket::bind_to_device | ( | const std::string & | name | ) | [inline] |
void olsr::sys::Socket::set_multicast | ( | const RealInterfaceInfo & | info | ) | [inline] |
void olsr::sys::Socket::set_priority | ( | ) | [inline] |
void olsr::sys::Socket::bind | ( | const sockaddr_t & | sin | ) | [inline] |
void olsr::sys::Socket::bind_multicast | ( | const RealInterfaceInfo & | info, | |
const address_t & | a, | |||
port_t | port | |||
) | [inline] |
void olsr::sys::Socket::connect | ( | const sockaddr_t & | sin | ) | [inline] |
void olsr::sys::Socket::send | ( | const utl::ConstData & | d | ) | const [inline] |
void olsr::sys::Socket::set_baddr | ( | const address_t & | a | ) | [inline] |
void olsr::sys::Socket::sendto | ( | const utl::ConstData & | d, | |
const address_t::sockaddr_t & | s | |||
) | const [inline] |
void olsr::sys::Socket::sendto_bcast | ( | const utl::ConstData & | d | ) | const [inline] |
sch::IOEvent::p_t olsr::sys::Socket::read_p | ( | ) | const [inline] |
sch::IOEvent::p_t olsr::sys::Socket::write_p | ( | ) | const [inline] |
bool olsr::sys::Socket::operator< | ( | const This & | rhs | ) | const [inline] |
static const This& olsr::sys::Socket::dummy | ( | ) | [inline, static] |
void olsr::sys::Socket::init | ( | ) | [private] |
int olsr::sys::Socket::_fd [private] |
unsigned olsr::sys::Socket::_mtu [private] |
address_t olsr::sys::Socket::_baddr [private] |
unsigned olsr::sys::Socket::_index [private] |
This olsr::sys::Socket::_dummy [static, private] |