...
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):
Code Block |
---|
NET_SOCK_ID sock_id; NET_TCP_CONN_ID conn_id_tcp; NET_ERR err; sock_id = Application's TCP socket ID; /* Get application's TCP socket ID. */ /* Get socket's TCP connection ID. */ conn_id_tcp = (NET_TCP_CONN_ID)NetSock_GetConnTransportID(sock_id, &err); if (err == NET_SOCK_ERR_NONE) { /* If NO errors, ... */ /* ... configure TCP connection local maximum segment size. */ NetTCP_ConnCfgMaxSegSizeLocal(conn_id_tcp, 1360u); } |
...