Connects and communicates with remote TCP/IP sockets.
Syntax
Result = SRP_TcpClient(Service, Object, Param1, Param2) |
The meaning of the return value depends on the service.
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. |
The SRP_TcpClient connects to remote sockets and passes data to them. It currently does not support the ability to receive data since that would require an event mechanize unsupported in a stored procedure context. Such abilities might be added in the future to an ActiveX version of TcpClient, so that receiving data can be done using events.
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 Service. |
SEND_SES | Sends data through the connection to the SRP Engine Service. |
Click on the service names above to read more details. Continue below for an explanation of the Key parameter.
The object parameter is a handle to a connection. The CONNECT creates the handle and all other services use it for communication.
The remaining parameters are unique to each service. Click on the service above to get details on the expected parameters.