Stopping the Treck Stack

Jump to: navigation, search

The tfStartTreck() function initializes and starts the Treck protocol stack. To stop and uninitialize the protocol stack the following two APIs are provided. These functions will free all global variables and system resources. If there are any active TCP connections, they will free socket structures but will not send out any FIN or RST packets on the sockets.

By default, this feature is disabled to reduce code size. To enable this feature, uncomment the following compile time macro in your trsystem.h:

#define TM_USE_STOP_TRECK