|
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 | 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 |
typedef Socket | This |
enum | _dummy_values { _dummy_val
} |
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 |