How many sockets can the MPLAB® Harmony TCP/IP stack support?

The total number of sockets supported is limited by the available RAM. A compile-time check is done to make sure that enough sockets are available for selected TCP/UDP applications. This can be configured using the MPLAB® Harmony Configurator (MHC).

To configure the maximum number of sockets allowed, expand the following MHC selection tree:
Harmony Framework Configuration > TCPIP Stack > Use TCP\IP Stack?

Check and expand the 'Use TCP' and/or 'Use UDP' selections to find the Max Sockets text box.

Note that sockets are physically implemented as buffers in SRAM. The more sockets you use, the more RAM will be consumed. You are responsible to determine the maximum number of sockets the project can handle. When defining these limits, take into account the number of interfaces the project stack is supporting.

For more details on the TCP/IP stack, see the Harmony Help File.

© 2018 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.