Go to documentation repository
...
Section | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Connect(BSTR ip, BSTR login, BSTR password, BSTR arch_password, long param, long port) set up a connection to the Server/Video Gate/Backup Archive.
BSTR arch_password – password to access the archive (i.e. admin password, can can be blank);
2 – videogate;
if 0, 1 or 2 are passed, the connection is established with port 900, 901 or 902 correspondingly;
if 100 is passed, the connection is with port 10504;
if any onter other value passed, the connection is with port number "port + 20000". For example, if port=900, the connection is established with server port 20900.
...
...
The result of calling the function with the parameter: camera 3 will be in the archive mode and the archive will be positioned to date «dd-mm-yy» and time «hh«hh:mm:ss» (date and time are to be set in this format only).
...
IsConnected() : boolean – method shows if the Video server is connected or disconnected.
GetCurIp() : BSTR – returns the IP address of Server specified when calling Connect.
SendRawMessage(BSTR msg) – sends the command to be executed to Video server.
...
SetParam(BSTR param_name, BSTR param_value) - – sets the number of camera windows in CamMonitor.
...