Jump to: navigation, search

Table of Contents >> Programmer's Reference

#include <trsocket.h>

int tfSocketArrayWalk (
ttWalkCBFuncPtr callBackFuncPtr,
ttVoidPtr argPtr

Function Description

This function is used to walk the list of open sockets, calling the user supplied callback function and passing the socket descriptor and user argument argPtr to it until we reach the end of the list or until the user callback function returns an error, whichever comes first. Return error value from the callback function to the user.


  • callBackFuncPtr
    The function pointer to the user function to call for each open socket.
    int callBackFunc(int socketDesc, ttUserVoidPtr argPtr);
  • argPtr
    User pointer to be passed back to the callback function.


    One of the parameters is bad.
  • (Other)
    Error value passed through from the user callback function.

Table of Contents >> Programmer's Reference