Connects and communicates with remote TCP/IP sockets.
Syntax
Result = SRP_TcpClient(Service, Object, Param1, Param2)
Returns
The meaning of the return value depends on the service.
Parameters
Parameter | Description |
---|---|
Service | The action to be performed against a remote socket. Required. |
Object | The TcpClient object against which the service will perform. Required. |
Param1-N | The service parameters. Optional. See Remarks for details. |
Remarks
The SRP_TcpClient connects to remote sockets and passes data to them.
Service
The SRP_TcpClient provides the following services:
Service | Description |
---|---|
CONNECT | Connects to a remote listening socket. |
CLOSE | Closes a connection. |
SEND | Sends data through the connection. |
RECEIVE | Receives data through the connection. |
CLOSE_SES | Closes a connection to the SRP Engine Server. |
SEND_SES | Sends data through the connection to the SRP Engine Server. |
STATUS_SES | Gets the current status of the SRP Engine Server. |
Click on the service names above to read more details. Continue below for an explanation of the Key parameter.
Object
The object parameter is a handle to a connection. The CONNECT creates the handle and all other services use it for communication.
Param1-N
The remaining parameters are unique to each service. Click on the service above to get details on the expected parameters.