tfGetSocketError

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfGetSocketError (int socketDescriptor);


Function Description

This function is used when any socket call fails (TM_SOCKET_ERROR), to get the error value back. This call has been added to allow for the lack of a per-process errno value that is lacking in most embedded real-time kernels.


Parameters

  • socketDescriptor
    The socket descriptor to get the error on.


Returns

  • (int)
    The last errno value for a socket.


Table of Contents >> Programmer's Reference