mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-17 12:06:34 +02:00
43 lines
1012 B
Plaintext
Vendored
43 lines
1012 B
Plaintext
Vendored
---
|
|
sidebar_position: 3
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Form connection parameters
|
|
Forms a collection of connection parameters
|
|
|
|
|
|
|
|
`Function FormConnectionParameters(Val URL, Val Password, Val ReadTimeout = 30, Val WriteTimeout = 30) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| URL | --url | String | ✔ | Server URL |
|
|
| Password | --pass | String | ✔ | Password for connection |
|
|
| ReadTimeout | --rtout | Number | ✖ | Response timeout (in seconds) |
|
|
| WriteTimeout | --wtout | Number | ✖ | Request sending timeout (in seconds) |
|
|
|
|
|
|
Returns: Structure Of KeyAndValue - Structure of connection parameters
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
URL = "127.0.0.1:25565";
|
|
Password = "Jg9F...";
|
|
WriteTimeout = 20;
|
|
ReadTimeout = 20;
|
|
|
|
Result = OPI_RCON.FormConnectionParameters(URL, Password, ReadTimeout, WriteTimeout);
|
|
```
|
|
|
|
|
|
|
|
|
|
|