Packet Sniffer SDK DLL Edition

HNTcpSession :: Properties :: TcpSesSetUserData

 Previous Next

Sets user-defined value associated with TCP session.

Syntax:

DWORD_PTR __stdcall TcpSesSetUserData(HANDLE hTcpSes, DWORD_PTR UserData);

Parameters:

hTcpSes

[in] HNTcpSession object handle.

UserData

[in] User-defined value associated with TCP session.

Return values:

If the function succeeds the return value will be the UserData parameter value.

Description:

Use this property 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