IPv6 UDP Socket Protocol, connected. More...
#include <senf/Socket/Protocols/INet/ConnectedUDPSocketHandle.hh>
Constructors | |
void | init_client () const |
Create unconnected client socket. More... | |
void | init_client (INet6SocketAddress const &address) const |
Create client socket and connect. More... | |
Additional Inherited Members | |
![]() | |
typedef ConnectedUDPv6Socket_Policy | Policy |
The protocols policy. More... | |
![]() | |
Policy const & | policy () const |
Access the policy instance. More... | |
~ConcreteSocketProtocol ()=0 | |
![]() | |
virtual void | close () |
Close socket. More... | |
virtual void | terminate () const |
Forcibly close socket. More... | |
virtual void | state (SocketStateMap &map, unsigned lod) const |
Return socket state information. More... | |
int | fd () const |
Get file descriptor. More... | |
SocketProtocol () | |
virtual | ~SocketProtocol ()=0 |
![]() | |
unsigned | available () const |
Return (maximum) number of bytes available for reading without < blocking. More... | |
bool | eof () const |
Check for end-of-file condition. More... | |
![]() | |
void | bindInterface (std::string const &iface) const |
Bind socket to specific interface. More... | |
std::string | bindInterface () |
Get bound interface. More... | |
![]() | |
std::pair< bool, unsigned > | linger () const |
Return current linger status. More... | |
void | linger (bool enable, unsigned timeout=0) const |
Change linger status. More... | |
boost::uint8_t | priority () const |
Get packet priority assigned to outgoing packets. More... | |
void | priority (boost::uint8_t value) const |
Set packet priority (e.g. TOS) More... | |
int | error () const |
Get and clear pending socket error. More... | |
unsigned | rcvbuf () const |
Check receive buffer size. More... | |
void | rcvbuf (unsigned size) const |
Change receive buffer size. More... | |
unsigned | sndbuf () const |
Check send buffer size. More... | |
void | sndbuf (unsigned size) const |
Change size of send buffer. More... | |
template<unsigned short N> | |
void | attachSocketFilter (::sock_filter(&filter)[N]) |
void | detachSocketFilter () |
void | mtuDiscovery (int mode) const |
void | rcvLowat (unsigned lowWat) const |
void | sndLowat (unsigned lowWat) const |
![]() | |
void | timestamp (struct timespec *spec) const |
Return packet timestamp of last packet. More... | |
ClockService::clock_type | timestamp () const |
Return packet timestamp of last packet. More... | |
![]() | |
bool | reuseaddr () const |
Return current reuseaddr state. More... | |
void | reuseaddr (bool value) const |
Set reuseraddr state. More... | |
![]() | |
ClientSocketHandle< Policy > | clientHandle () const |
Get client handle for associated socket. More... | |
ServerSocketHandle< Policy > | serverHandle () const |
Get server handle for associated socket. More... | |
![]() | |
FileHandle | fh () const |
Get a FileHandle for this instance. More... | |
void | fd (int) const |
Initialize file descriptor. More... | |
IPv6 UDP Socket Protocol, connected.
ConnectedUDPv6SocketProtocol provides an internet protocol stream socket based on the UDP protocol and IPv6 addressing.
This class is utilized as the protocol class of the ProtocolClientSocketHandle via the Socket Handle typedefs above.
Definition at line 129 of file ConnectedUDPSocketHandle.hh.
void senf::ConnectedUDPv6SocketProtocol::init_client | ( | ) | const |
Create unconnected client socket.
Definition at line 55 of file ConnectedUDPSocketHandle.cc.
void senf::ConnectedUDPv6SocketProtocol::init_client | ( | INet6SocketAddress const & | address | ) | const |
Create client socket and connect.
Creates a new client socket and connects to the given address.
[in] | address | remote address to connect to |
Definition at line 65 of file ConnectedUDPSocketHandle.cc.