AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <SocketOptions.h>
Public Member Functions | |
SocketOptions () | |
SocketOptions (const SocketOptions &rhs)=default | |
SocketOptions (SocketOptions &&rhs)=default | |
SocketOptions & | operator= (const SocketOptions &rhs)=default |
SocketOptions & | operator= (SocketOptions &&rhs)=default |
void | SetSocketType (SocketType type) |
SocketType | GetSocketType () const |
void | SetSocketDomain (SocketDomain domain) |
SocketDomain | GetSocketDomain () const |
void | SetConnectTimeoutMs (uint32_t timeout) |
uint32_t | GetConnectTimeoutMs () const |
void | SetKeepAliveIntervalSec (uint16_t keepAliveInterval) |
uint16_t | GetKeepAliveIntervalSec () const |
void | SetKeepAliveTimeoutSec (uint16_t keepAliveTimeout) |
uint16_t | GetKeepAliveTimeoutSec () const |
void | SetKeepAliveMaxFailedProbes (uint16_t maxProbes) |
uint16_t | GetKeepAliveMaxFailedProbes () const |
void | SetKeepAlive (bool keepAlive) |
bool | GetKeepAlive () const |
Socket configuration options
Aws::Crt::Io::SocketOptions::SocketOptions | ( | ) |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
Set connection timeout
timeout | connection timeout in milliseconds. |
|
inline |
Set keep alive option.
keepAlive | True, periodically transmit keepalive messages for detecting a disconnected peer. |
|
inline |
Set keep alive interval seconds.
keepAliveInterval | Duration, in seconds, between keepalive probes. If 0, then a default value is used. |
|
inline |
Set keep alive max failed probes.
maxProbes | The number of keepalive probes allowed to fail before a connection is considered lost. |
|
inline |
Set keep alive time out seconds.
keepAliveTimeout | interval, in seconds, that a connection must be idle for before keep alive probes begin to get sent out |
|
inline |
Set socket domain
domain | SocketDomain object. |
|
inline |
Set socket type
type | SocketType object. |