tfInterfaceGetVirtualChannel
Table of Contents >> Programmer's Reference
| #include <trsocket.h> |
| int tfInterfaceGetVirtualChannel | ( |
| ttUserInterface interfaceHandle, | |
| ttUser32Bit * virtualChannelPtr | |
| ); |
Function Description
tfInterfaceGetVirtualChannel() is called by the user in the send path from the driver send routine to get the ATM virtual channel associated with the interface and multihome the data is sent from.
| This function should only be called from the device driver send function. |
Parameters
- interfaceHandle
- The interface handle as returned by tfAddInterface(), and passed to the device driver send function.
- virtualChannelPtr
- Pointer to a 32-bit variable where the virtual channel will be stored if the call is successful.
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- Invalid interface handle, or the interface handle does not match the interface handle of the packet currently being sent.
- TM_ENOENT
- Empty device send queue.
| Also see tfInterfaceSetVirtualChannel(). |