tfCloseInterface
Table of Contents >> Programmer's Reference
| #include <trsocket.h> |
| int tfCloseInterface | (ttUserInterface interfaceHandle); |
Function Description
This function is used to close the interface that is passed in. It simply calls the link layer close routine, the driver close routine, removes the interface from the local routing table and returns the error code that the link layer, or driver returns.
Parameters
- interfaceHandle
- The device driver entry that contains the close routine.
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- Parameter is invalid.
- TM_EALREADY
- The device is already closed.
- TM_EINPROGRESS
- If the connection is in the process of closing the connection (as in PPP). The user doesn't need to do anything, and will be notified by the PPP link layer when the interface is actually closed.