tfStartTreck

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfStartTreck (void);


Function Description

tfStartTreck() is used to initialize the Treck protocol stack. This involves initializing all the global variables and getting system resources.


Note Note: Prior to calling tfStartTreck() either tfInitTreck() or tfInitTreckMultipleContext() must be called. The only Treck API that can be made between calls to tfInitTreck() or tfInitTreckMultipleContext () and tfStartTreck() is tfInitTreckOptions().


Returns

  • TM_ENOERROR
    Success
  • TM_ENOBUFS
    No memory to complete the operation.
  • TM_EPERM
    The timer tick length has not been initialized. Use the tfInitTreckOptions() call to initialize it.
  • TM_EFAULT
    Code is compiled with the wrong network byte order switch. If you had the TM_LITTLE_ENDIAN switch defined in <trsystem.h>, undefine it. If you had not defined it, define it.


Table of Contents >> Programmer's Reference