Progress
Language Reference


CONNECT( ) Method
(Socket Object)

Connects a socket to the specified TCP/IP port on the specified host.

Return Type: LOGICAL

Applies To: Socket Object Handle

SYNTAX
CONNECT ( [ connection-parms ] ) 

connection-parms

A character string expression that contains a space-separated list of one or more socket connection parameters. Table 49 describes each socket connection parameter, which can be included in this string.

Table 49: Socket Connection Parameters 
Parameter
Description
-H socket-address
Optional. The host name or IP address to which the connection is to be established
-S socket-port
The port number for the socket connection. You can specify either an explicit port number or a TCP service name. If you use a TCP service name, the method uses the port number associated with that name in the TCP/IP services file.
-pf filename
Optional. A text file containing any of the socket connection parameters described in this table. If this file contains any other Progress startup parameters, this method ignores them.

NOTE: If an error occurs while executing the CONNECT( ) method, the method returns FALSE. Otherwise, it returns TRUE.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095