<< Click to Display Table of Contents > Remote |
The following parameters can be found in SAMLight at Settings → System → Remote. |
---|
☐ Set ☒ Get |
||
---|---|---|
DLL Function |
int Status = ScGetConnectionStatus() |
|
ASCII Function |
- |
|
Description |
Get the connection state for CCI via TCP. |
|
Status |
Type: int |
Index: |
Location: ScComConnectionToolCtrlResultValues |
||
scComConnectionToolCtrlResultOK |
0 |
|
If connected, the return value is 0. |
||
scComConnectionToolCtrlResultOpenFailed |
1 |
|
The connection could not be opened. |
||
scComConnectionToolCtrlResultConnectRecipientFailed |
2 |
|
The recipient could not connect. |
||
scComConnectionToolCtrlResultSendFailed |
3 |
|
Sending failed. |
||
scComConnectionToolCtrlResultTimeOut |
4 |
|
In case of a timeout. |
||
Notes |
- |
|
C# Example: Get connection status:
int Status = cci.ScGetConnectionStatus(); |
Table 55: Connection Status
☒ Set ☐ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScOpenTCPConnection(string Recipient_Address, int Recipient_Port) |
||
ASCII Function |
- |
||
Description |
Opens an TCP connection to the scanner application through the network and returns 1 if the connection could be established successfully. The RecipientAddr is the IP and the RecipientPort is the Port of the application that has to be accessed using the client control interface as described above. For the recipient IP in every case the real IP of the host systems network interface card has to be entered where the application that has to be remote controlled is running. If that application was configured using 0.0.0.0 it is not allowed to enter that value here. |
||
Recipient_Address |
Type: string |
Unit: none |
|
Set an IP-Address. |
|||
Recipient_Port |
Type: int |
Unit: none |
|
Set the recipient port. |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
- |
||
C# Example: Open a TCP connection:
int CCI_Return = cci.ScOpenTCPConnection("1.1.1.1", 111); |
Table 56: Open TCP Connection