<contextID> Integer type. Context ID. Range: 1–16.
<connectID> Integer type. Socket service index. Range: 0–11.
<service_type> String type. Socket service type.
"TCP" Start a TCP connection as a client
"UDP" Start a UDP connection as a client
"TCP LISTENER" Start a TCP server to listen to TCP connection
"UDP SERVICE" Start a UDP service
<IP_address> String type.
If <service_type> is "TCP" or "UDP", it indicates the IP address of a remote server,
such as "220.180.239.212".
If <service_type> is "TCP LISTENER" or "UDP SERVICE", enter "127.0.0.1".
<domain_name> String type. Domain name address of the remote server.
<remote_port> Integer type. Port number of the remote server. It is only valid when <service_type>
is "TCP" or "UDP", and in such as case, the range is 0–65535. Otherwise, any value
in the range of 0–65535 will not take effect.
<local_port> Integer type. Local port number. Range: 0–65535.
If <service_type> is "TCP LISTENER" or "UDP SERVICE", this parameter must be
specified.
If <service_type> is "TCP" or "UDP", <local_port> will be 0, then the local port will
be assigned automatically. In this case, the value 0 will be used if it is omitted.
<access_mode> Integer type. Data access mode of the socket service.
0 Buffer access mode
1 Direct push mode
2 Transparent access mode
<err> Integer type. Error code of operation. Please refer to Chapter 4.