kaveSetMonitorPorts

Sets the ports to be monitored by Web Monitor and Mail Monitor.

You can specify closed ports in the list of the monitored ports.

This function is available in KAV SDK for Windows platforms.

Syntax

HRESULT kaveSetMonitorPorts (

const unsigned short *ports,

unsigned short portsCount);

Parameters

The kaveSetMonitorPorts function has the following parameters.

kaveSetMonitorPorts function parameters

Name

Type

Description

ports

In

Set of ports that must be monitored by traffic monitoring components.

The parameter is mandatory.

portsCount

In

Number of ports in the ports argument. For example, if portsCount is 0, the list of monitored ports will be cleared.

The parameter is mandatory.

Return value

The table below describes the possible return values of the kaveSetMonitorPorts function.

kaveSetMonitorPorts function return codes

Return code

Description

S_OK

The function succeeds.

E_INVALIDARG

Port 0 is specified in the ports argument, or NULL pointer is passed in the argument.

S_FALSE

Some ports are specified more than once in the ports argument. In this case all the ports that are specified in ports will be set as monitored ones even if they occur in ports more than once.

E_FAIL

The function failed.

If logging is turned on, an error message is added to the log.

For information about other return values, see section "Return codes".

Page top