com.TCPRequest.Create

Creates a new TCP request object.

Syntax

com.TCPRequest.Create(
   uri STRING )
  RETURNS com.TCPRequest
  1. uri specifies the URL of the TCP request.

Usage

This class method creates a new com.TCPRequest object based on the URL passed as parameter.

The URL must use the TCP or TCPS protocol. Examples of valid URLs include:
  • tcp://localhost:4242/
  • tcps://localhost:4343/

The URL can be an identifier of an URL mapping with an optional alias:// prefix. See FGLPROFILE configuration for more details about URL mapping with aliases, and for proxy and security configuration.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).