tfNtTcpEntryToStr
Table of Contents >> Application Reference >> NETSTAT
| #include <trsocket.h> |
| char * tfNtTcpEntryToStr | ( |
| ttNtTcpEntryPtr ntTcpEntryPtr, | |
| char * buffer, | |
| int * sizePtr | |
| ); |
Function Description
This function converts a TCP entry to a string containing the major fields.
Parameters
- ntTcpEntryPtr
- The TCP entry to be converted.
- buffer
- A buffer to hold the resultant string. The size of this buffer should be TM_NT_TCP_TABLE_STR_LEN bytes.
- sizePtr
- A pointer containing the size of buffer when tfNtGetTcpHeaderStr() 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_TCP_TABLE_STR_LEN.