tfCreateTreckContext

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


ttUserContext tfInitTreckMultipleContext (void);


Function Description

This function creates a Treck context for an instance of the Treck TCP/IP stack. It will allocate a structure containing all Treck variables for a context, and returns a pointer to the newly allocated structure. tfCreateTreckContext() should be called once for each instance of the Treck TCP/IP stack. It should be called after tfInitTreckMultipleContext(), and prior to any other Treck functions, when using multiple instances of the Treck stack.


Returns

  • (ttUserContext)0
    Failure.
  • (Other)
    Success.


Table of Contents >> Programmer's Reference