Appearance
Socket Client
Group: IO > Network
Reads and writes data to/from a socket which connects to a server.
Parameters
Protocol type
- Description: Which network protocol to connect to server with
- Automation reference:
SocketType - Type: enumeration
| Identifier | Value | Description |
|---|---|---|
TCP | TCP | |
UDP | UDP |
Server address
- Description: Hostname or IP of server
- Automation reference:
Host - Type: string
Server port
- Description: Port to connect to
- Automation reference:
Port - Type: integer
Receive buffer size
- Description: Number of bytes to read from the server.
- Automation reference:
ReceiveBufferSize - Enablement:
SocketType==TCP - Type: integer
Enable no-delay
- Description: Disables Nagle's algorithm
- Automation reference:
NoDelay - Enablement:
SocketType==TCP - Type: boolean
Auto reconnect
- Description: Automatically reconnects connection if the server doesn't respond or the connection is broken
- Automation reference:
AutoReconnect - Enablement:
SocketType==TCP - Type: boolean
Connection timeout
- Description: Time to wait for a server to respond
- Automation reference:
ConnectTimeout - Unit: s
- Enablement:
SocketType==TCP - Type: real
Measurements
Connected
- Description: True if a connection is established
- Automation reference:
Connected - Type: boolean