Packet Sniffer SDK DLL Edition

HNLBSession :: Properties :: LbSesGetUserData

 Previous Next

Returns user-defined value associated with TCP session.

Syntax:

DWORD_PTR __stdcall LbSesGetUserData(HANDLE hLbSes);

Parameters:

hLbSes

[in] HNLBSession 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 LbSesGetUserData to bind your own data with HNLBSession object (e.g., an address of a structure containing additional information about TCP session: resolved hosts names etc.) to get it later using LbSesSetUserData function.

See also:HNLBSession, LbSesSetUserData