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

ParameterDescription
ServiceThe action to be performed against a remote socket. Required.
ObjectThe TcpClient object against which the service will perform. Required.
Param1-NThe 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:

ServiceDescription
CONNECTConnects to a remote listening socket.
CLOSECloses a connection.
SENDSends data through the connection.
RECEIVEReceives data through the connection.
CLOSE_SESCloses a connection to the SRP Engine Server.
SEND_SESSends data through the connection to the SRP Engine Server.
STATUS_SESGets 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.

  • No labels