Packet Sniffer SDK DLL Edition

HNLBAdapter :: Properties :: LbAdpSetCaptureTcp

 Previous Next

Set TCP traffic capture flag.

Syntax:

BOOL __stdcall LbAdpSetCaptureTcp(HANDLE hLbAdp, BOOL bCaptureTcp);

Parameters:

hLbAdp

[in] HNLBAdapter object handle.

bCaptureTcp

[in] New value of the TCP traffic capture flag.

Return values:

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

Description:

Use LbAdpSetCaptureTcp to change HNLBAdapter.CaptureTcp property value. If HNLBAdapter.CaptureTcp is set to TRUE, then HNLBAdapter object registers new TCP sessions for local OS (see LbAdpSetOnConnect), if it is set to FALSE, HNLBAdapter object ignores new TCP sessions. Default value of HNLBAdapter.CaptureTcp property is TRUE.

See also:HNLBAdapter, LbAdpGetCaptureTcp, LbAdpSetOnConnect