Configure TCP connection’s transmit window size.
Files
net_tcp.h/net_tcp.c
Prototype
Arguments
conn_id_tcp
TCP connection handle ID to configure transmit window size.
...
NET_TCP_ERR_NONE
NET_TCP_ERR_CONN_NOT_USED
NET_TCP_ERR_INVALID_CONN_STATE
NET_TCP_ERR_INVALID_CONN_OP
NET_TCP_ERR_INVALID_ARG
NET_TCP_ERR_INVALID_CONN
NET_TCP_ERR_CONN_NOT_USED
NET_ERR_INIT_INCOMPLETE
NET_OS_ERR_LOCK
Returned Value
DEF_OK
,
TCP connection’s transmit window size successfully configured, if no errors.
DEF_FAIL
,
otherwise.
Required Configuration
Available only if TCP is enabled (see TCP Layer Configuration).
Notes / Warnings
The conn_id_tcp argument represents the TCP connection handle – not the socket handle. The following code may be used to get the TCP connection handle and configure TCP connection parameters (see also NetSock_GetConnTransportID):
...