tfCheckXmitInterface

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfCheckXmitInterface (ttUserInterface interfaceHandle);


Function Description

tfCheckXmitInterface() is used to check if data is ready to be sent on a particular device/interface (data queued to the interface send queue). This call can be used in environments where it is preferable to poll the device for data ready to be transmitted (i.e. a main loop). If you are using a separate task or thread to transmit data, then you should use the tfWaitXmitInterface() call. Upon a successful return, the user should call tfXmitInterface() to send the data ready to be transmitted from the bottom of the Treck stack to the device driver.


Parameters

  • interfaceHandle
    The interface handle to poll to see if data needs to be received from the device driver.


Returns

  • TM_ENOERROR
    There is data waiting to be transmitted to the device driver.
  • TM_EWOULDBLOCK
    There is no data waiting to be trasnmitted to the device driver.


Table of Contents >> Programmer's Reference