Options for connecting. More...
#include <P_DNSConnection.h>
Public Types | |
typedef Options | self |
Self reference type. | |
Public Member Functions | |
Options () | |
self & | setUseTcp (bool p) |
self & | setNonBlockingConnect (bool p) |
self & | setNonBlockingIo (bool p) |
self & | setBindRandomPort (bool p) |
self & | setLocalIpv6 (sockaddr const *addr) |
self & | setLocalIpv4 (sockaddr const *addr) |
Data Fields | |
bool | _non_blocking_connect |
Connection is done non-blocking. | |
bool | _non_blocking_io |
Set socket to have non-blocking I/O. | |
bool | _use_tcp |
Use TCP if true , use UDP if false . | |
bool | _bind_random_port |
Bind to a random port. | |
sockaddr const * | _local_ipv6 |
Bind to this local address when using IPv6. | |
sockaddr const * | _local_ipv4 |
Bind to this local address when using IPv4. |
Options for connecting.
Definition at line 43 of file P_DNSConnection.h.
typedef Options DNSConnection::Options::self |
Self reference type.
Definition at line 44 of file P_DNSConnection.h.
DNSConnection::Options::Options | ( | ) | [inline] |
Definition at line 97 of file P_DNSConnection.h.
DNSConnection::Options & DNSConnection::Options::setBindRandomPort | ( | bool | p | ) | [inline] |
Definition at line 114 of file P_DNSConnection.h.
References _bind_random_port.
DNSConnection::Options & DNSConnection::Options::setLocalIpv4 | ( | sockaddr const * | addr | ) | [inline] |
Definition at line 116 of file P_DNSConnection.h.
References _local_ipv4.
DNSConnection::Options & DNSConnection::Options::setLocalIpv6 | ( | sockaddr const * | addr | ) | [inline] |
Definition at line 118 of file P_DNSConnection.h.
References _local_ipv6.
DNSConnection::Options & DNSConnection::Options::setNonBlockingConnect | ( | bool | p | ) | [inline] |
Definition at line 110 of file P_DNSConnection.h.
References _non_blocking_connect.
DNSConnection::Options & DNSConnection::Options::setNonBlockingIo | ( | bool | p | ) | [inline] |
Definition at line 108 of file P_DNSConnection.h.
References _non_blocking_io.
DNSConnection::Options & DNSConnection::Options::setUseTcp | ( | bool | p | ) | [inline] |
Definition at line 112 of file P_DNSConnection.h.
References _use_tcp.
Bind to a random port.
Default: true
.
Definition at line 57 of file P_DNSConnection.h.
Referenced by DNSConnection::connect(), and setBindRandomPort().
sockaddr const* DNSConnection::Options::_local_ipv4 |
Bind to this local address when using IPv4.
Default: unset, bind to INADDRY_ANY.
Definition at line 63 of file P_DNSConnection.h.
Referenced by DNSConnection::connect(), and setLocalIpv4().
sockaddr const* DNSConnection::Options::_local_ipv6 |
Bind to this local address when using IPv6.
Default: unset, bind to IN6ADDR_ANY.
Definition at line 60 of file P_DNSConnection.h.
Referenced by DNSConnection::connect(), and setLocalIpv6().
Connection is done non-blocking.
Default: true
.
Definition at line 48 of file P_DNSConnection.h.
Referenced by DNSConnection::connect(), and setNonBlockingConnect().
Set socket to have non-blocking I/O.
Default: true
.
Definition at line 51 of file P_DNSConnection.h.
Referenced by DNSConnection::connect(), and setNonBlockingIo().
Use TCP if true
, use UDP if false
.
Default: false
.
Definition at line 54 of file P_DNSConnection.h.
Referenced by DNSConnection::connect(), and setUseTcp().