Packet Sniffer SDK DLL Edition

HNTcpSession :: Methods :: TcpSesGetServerDataSize

 Previous Next

Returns the size of data sent by server.

Syntax:

DWORD __stdcall TcpSesGetServerDataSize(HANDLE hTcpSes, DWORD *HiValue);

Parameters:

hTcpSes

[in] HNTcpSession object handle.

HiValue

[out] The pointer to the variable, in which the high DWORD of the result will be stored. May be set to NULL if the application does not need these data.

Return values:

If the function succeeds the return value will be the low-order doubleword of the size (in bytes) of data sent by server, and if HiValue is non-NULL the function will put the high-order doubleword of this number into the variable pointed to by this parameter.

Description:

Use this function to get the size of data sent by server. This value is counted each time while TcpMgrProcessPacket function is being executed for certain TCP connection.

See also:HNTcpSession, TcpMgrProcessPacket