Skip to content

Commit

Permalink
Add type specification for socket options (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertRostohar committed Jul 8, 2022
1 parent aa8b62b commit 927626f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions documentation/src/IoT_Socket_API.txt
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,12 @@ to \ref iotSocketCreate.

The argument \em opt_id is the socket option for which the value is to be retrieved. The following
socket options are supported:
Option | Description
:----------------------------|:-------------------------------------------------
\ref IOT_SOCKET_SO_RCVTIMEO | Timeout for receiving in blocking mode
\ref IOT_SOCKET_SO_SNDTIMEO | Timeout for sending in blocking mode
\ref IOT_SOCKET_SO_KEEPALIVE | Keep-alive mode for the stream socket
\ref IOT_SOCKET_SO_TYPE | Type of the socket (stream or datagram)
Option | Type | Description
:----------------------------|:--------|:-------------------------------------------------
\ref IOT_SOCKET_SO_RCVTIMEO | int32_t | Timeout for receiving in blocking mode
\ref IOT_SOCKET_SO_SNDTIMEO | int32_t | Timeout for sending in blocking mode
\ref IOT_SOCKET_SO_KEEPALIVE | int32_t | Keep-alive mode for the stream socket
\ref IOT_SOCKET_SO_TYPE | int32_t | Type of the socket (stream or datagram)

The argument \em opt_val points to the buffer that will receive the value of the \em opt_id.

Expand Down Expand Up @@ -579,12 +579,12 @@ to \ref iotSocketCreate.

The argument \em opt_id is the socket option for which the value is to be set. The following
socket options are supported:
Option | Description
:----------------------------|:-------------------------------------------------
\ref IOT_SOCKET_IO_FIONBIO | Non-blocking mode for the socket
\ref IOT_SOCKET_SO_RCVTIMEO | Timeout for receiving in blocking mode
\ref IOT_SOCKET_SO_SNDTIMEO | Timeout for sending in blocking mode
\ref IOT_SOCKET_SO_KEEPALIVE | Keep-alive mode for the stream socket
Option | Type | Description
:----------------------------|:--------|:-------------------------------------------------
\ref IOT_SOCKET_IO_FIONBIO | int32_t | Non-blocking mode for the socket
\ref IOT_SOCKET_SO_RCVTIMEO | int32_t | Timeout for receiving in blocking mode
\ref IOT_SOCKET_SO_SNDTIMEO | int32_t | Timeout for sending in blocking mode
\ref IOT_SOCKET_SO_KEEPALIVE | int32_t | Keep-alive mode for the stream socket

The argument \em opt_val points to the buffer containing the value of the \em opt_id.

Expand Down

0 comments on commit 927626f

Please sign in to comment.