TCPTXPerformanceTask Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPTXPerformanceTask Function
C
void TCPTXPerformanceTask();
Description

This function tests the transmit performance of the TCP module. To use, open a telnet connection to the device on TX_PERFORMANCE_PORT (9762 by default). The board will rapidly transmit data and report its performance to the telnet client. 

TCP performance is affected by many factors, including round-trip time and the TCP buffer size. For faster results, increase the size of the TX buffer size for the TCP_PURPOSE_TCP_PERFORMANCE_TX socket in TCPIPConfig.h. Round-trip time is affected by the distance to the device, so across the desk will be orders of magnitude faster than across the Internet. 

This function is particularly useful after development to determine the impact of your application code on the stack's performance. A before and after comparison will indicate if your application is unacceptably blocking the processor or taking too long to execute.

Preconditions

TCP is initialized.

Returns

None

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.