Packet Sniffer SDK DLL Edition

HNTcpSession :: Properties :: TcpSesGetUserData

 Previous Next

Returns user-defined value associated with TCP session.

Syntax:

DWORD_PTR __stdcall TcpSesGetUserData(HANDLE hTcpSes);

Parameters:

hTcpSes

[in] HNTcpSession object handle.

Return values:

If the function succeeds the return value will be the value definded by the user and associated with TCP session, otherwise it will be 0.

Description:

Use TcpSesGetUserData to bind your own data with HNTcpSession object (e.g., an address of a structure containing additional information about TCP session).

See also:HNTcpSession, OnSessionCreate