Kaspersky Security Center Automation  10.0
HRESULT IKlAkSlaveServers::Connect ( [in] long  lServer,
[in] long  lExtraWait,
[out, retval] IKlAkProxy **  ppProxy 
)

Create indirect connection with the specified slave server.

Create indirect connection with the specified slave server using master server as a gate. Master/slave relation must exist.

Parameters:
lServer slave server id
lExtraWait waiting period in milliseconds, -1 means "default timeout". Waits for connection between slave and master servers being established. Normally connection between slave and master servers is persistent and exists permanently, so usually timeout is not needed at all.
Return values:
ppProxy connection with the slave server as a KlAkProxy object

See also Creating and destroying master/slave relation sample.