tfFlushRecvQ

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfFlushRecvQ (int socketDescriptor);


Function Description

This function flushes the socket receive buffer for the specified socket. This can be useful with UDP sockets to flush queued packets that are too big for the application to process (i.e. when the call to recvfrom() returns TM_EMSGSIZE). Note that this function flushes all packets queued to be received on the specified socket.


Parameters

  • socketDescriptor
    The socket descriptor to flush the socket receive buffer for.


Returns

  • TM_ENOERROR
    Success


Table of Contents >> Programmer's Reference