You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-01 22:29:52 +02:00
Main build (Jenkins)
This commit is contained in:
42
docs/en/md/TCP/Tcp-client/Connect-and-receive-data.mdx
Normal file
42
docs/en/md/TCP/Tcp-client/Connect-and-receive-data.mdx
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Connect and receive data
|
||||
Establishes a connection and reads data until completion or by limits
|
||||
|
||||
|
||||
|
||||
`Function ConnectAndReceiveData(Val Address, Val SSL = False, Val Timeout = 0, Val Size = 0, Val AsString = True, Val Encoding = "UTF-8") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Address | --address | String | ✔ | Address and port |
|
||||
| SSL | --ssl | Boolean | ✖ | Flag for using a secure connection |
|
||||
| Timeout | --timeout | Number | ✖ | Data reading time (sec). 0 > until the end of the message |
|
||||
| Size | --size | Number | ✖ | Maximum data size. 0 > no limit |
|
||||
| AsString | --string | Boolean | ✖ | True > returns string, False > binary data |
|
||||
| Encoding | --enc | String | ✖ | Encoding of received data |
|
||||
|
||||
|
||||
Returns: String, BinaryData - Received data
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
When the Timeout and Size parameters are set to 0, reading is performed until the message ends
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
4
docs/en/md/TCP/Tcp-client/_category_.json
Normal file
4
docs/en/md/TCP/Tcp-client/_category_.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Tcp client",
|
||||
"position": "2"
|
||||
}
|
||||
Reference in New Issue
Block a user