Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

net_tcp.h/net_tcp.c

Prototype

Code Block

          CPU_BOOLEAN NetTCP_ConnCfgMaxSegSizeLocal(NET_TCP_CONN_ID   conn_id_tcp,
                                                    NET_TCP_SEG_SIZE  max_seg_size,
                                                    NET_ERR          *perr);

Arguments

conn_id_tcp

TCP connection handle ID to configure local maximum segment size.

...

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): 


NetTCP_ConnCfgMaxSegSizeLocal() is called by application function(s) and must not be called with the global network lock already acquired. It must block all other network protocol tasks by pending on and acquiring the global network lock (see “net.h Note #3”). This is required since an application's network protocol suite API function access is asynchronous to other network protocol tasks.