Socket Option Id#
Macros#
Non-blocking I/O (Set only, default = 0); opt_val = &nbio, opt_len = sizeof(nbio), nbio (integer): 0=blocking, non-blocking otherwise.
Receive timeout in ms (default = 0); opt_val = &timeout, opt_len = sizeof(timeout)
Send timeout in ms (default = 0); opt_val = &timeout, opt_len = sizeof(timeout)
Keep-alive messages (default = 0); opt_val = &keepalive, opt_len = sizeof(keepalive), keepalive (integer): 0=disabled, enabled otherwise.
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_FIONBIOValue:
1
Non-blocking I/O (Set only, default = 0); opt_val = &nbio, opt_len = sizeof(nbio), nbio (integer): 0=blocking, non-blocking otherwise.
85
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_SO_RCVTIMEO#
#define IOT_SOCKET_SO_RCVTIMEOValue:
2
Receive timeout in ms (default = 0); opt_val = &timeout, opt_len = sizeof(timeout)
86
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_SO_SNDTIMEO#
#define IOT_SOCKET_SO_SNDTIMEOValue:
3
Send timeout in ms (default = 0); opt_val = &timeout, opt_len = sizeof(timeout)
87
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_SO_KEEPALIVE#
#define IOT_SOCKET_SO_KEEPALIVEValue:
4
Keep-alive messages (default = 0); opt_val = &keepalive, opt_len = sizeof(keepalive), keepalive (integer): 0=disabled, enabled otherwise.
88
of file third_party/iot_socket/include/iot_socket.h
IOT_SOCKET_SO_TYPE#
#define IOT_SOCKET_SO_TYPEValue:
5
Socket Type (Get only); opt_val = &socket_type, opt_len = sizeof(socket_type), socket_type (integer): IOT_SOCKET_SOCK_xxx.
89
of file third_party/iot_socket/include/iot_socket.h