Most of your application protocols will require you to allocate memory for each connection (socket) that you have open. Like the other firmware configuration options, this is controlled by the definition of macros in TCPIPConfig.h. For TCP sockets, you will have to specify four initialization parameters for each socket, including the purpose of that socket, the type of memory the socket should be stored in, the size of the transmit FIFO, and the size of the receive FIFO. The stack will then initialize the sockets with this information, and create a TCP Control Block (TCB) for each to control its operations. This topic will outline the socket configuration functionality in the sample version of TCPIPConfig.h that is included with the TCP/IP Demo App project.
Name |
Description |
Describes memory allocation macros. | |
Describes socket types. | |
Describes the structure used to declare and initialize TCP sockets. | |
Describes how UDP sockets are defined. | |
Describes the allocation of BSD sockets. |