Socket Option Id#

Macros#

#define

Non-blocking I/O (Set only, default = 0); opt_val = &nbio, opt_len = sizeof(nbio), nbio (integer): 0=blocking, non-blocking otherwise.

#define

Receive timeout in ms (default = 0); opt_val = &timeout, opt_len = sizeof(timeout)

#define

Send timeout in ms (default = 0); opt_val = &timeout, opt_len = sizeof(timeout)

#define

Keep-alive messages (default = 0); opt_val = &keepalive, opt_len = sizeof(keepalive), keepalive (integer): 0=disabled, enabled otherwise.

#define

Socket Type (Get only); opt_val = &socket_type, opt_len = sizeof(socket_type), socket_type (integer): IOT_SOCKET_SOCK_xxx.

Macro Definition Documentation#

IOT_SOCKET_IO_FIONBIO#

#define IOT_SOCKET_IO_FIONBIO
Value:
1

Non-blocking I/O (Set only, default = 0); opt_val = &nbio, opt_len = sizeof(nbio), nbio (integer): 0=blocking, non-blocking otherwise.


Definition at line 85 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_SO_RCVTIMEO#

#define IOT_SOCKET_SO_RCVTIMEO
Value:
2

Receive timeout in ms (default = 0); opt_val = &timeout, opt_len = sizeof(timeout)


Definition at line 86 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_SO_SNDTIMEO#

#define IOT_SOCKET_SO_SNDTIMEO
Value:
3

Send timeout in ms (default = 0); opt_val = &timeout, opt_len = sizeof(timeout)


Definition at line 87 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_SO_KEEPALIVE#

#define IOT_SOCKET_SO_KEEPALIVE
Value:
4

Keep-alive messages (default = 0); opt_val = &keepalive, opt_len = sizeof(keepalive), keepalive (integer): 0=disabled, enabled otherwise.


Definition at line 88 of file third_party/iot_socket/include/iot_socket.h

IOT_SOCKET_SO_TYPE#

#define IOT_SOCKET_SO_TYPE
Value:
5

Socket Type (Get only); opt_val = &socket_type, opt_len = sizeof(socket_type), socket_type (integer): IOT_SOCKET_SOCK_xxx.


Definition at line 89 of file third_party/iot_socket/include/iot_socket.h