tfNtNatEntryToStr
Table of Contents >> Application Reference >> NETSTAT
| #include <trsocket.h> |
| char * tfNtNatEntryToStr | ( |
| ttNtNatEntryPtr ntNatEntryPtr, | |
| char * buffer, | |
| int * sizePtr | |
| ); |
Function Description
This function converts an NAT entry to a string containing the major fields.
Parameters
- ntNatEntryPtr
- The NAT entry to be converted.
- buffer
- A buffer to hold the resultant string. The size of this buffer should be TM_NT_NAT_TABLE_STR_LEN bytes.
- sizePtr
- A pointer containing the size of buffer when tfNtNatEntryToStr() is called. Upon return, this is a pointer to the actual size of the resultant string.
Returns
- >= 0
- A pointer to the resultant string.
- 0
- One of the following:
- buffer is NULL.
- sizePtr is NULL or less than TM_NT_NAT_TABLE_STR_LEN.