Previous Next

CONNECT( ) method (Socket object)
Connects a socket to the specified TCP/IP port on the specified host.
Return type:
Applies to:
 
Syntax 
CONNECT ( [ connection-parms ] )
connection-parms
A character string expression that contains a space-separated list of one or more socket connection parameters.
Table 71 describes each socket connection parameter, which can be included in this string.
 
-H socket-address 
-S socket-port 
-ssl 
(Used in conjunction with the -H and -S parameters.)
-nosessionreuse 
Note: OpenEdge SSL turns on SSL session reuse by default. So, after the initial connection to a given host (-H) and port (-S), each subsequent connection to the same host and port restarts the SSL session and ignores any different connection parameters that are specified for the subsequent connection, including -nosessionreuse. If you want to change SSL socket options (such as -nohostverify) for each subsequent connection to a given host and port, be sure to specify the -nosessionreuse parameter on the initial SSL socket connection to that same host and port.
-nohostverify 
-pf filename 
Note:
If an error occurs while executing the CONNECT( ) method, the method returns FALSE. Otherwise, it returns TRUE.
When an ABL client (that is not SSL-enabled) calls the CONNECT( ) method and immediately reads data from the socket using the READ( ) method, and an ABL server (that is SSL-enabled) calls the ENABLE-CONNECTIONS( ) method and immediately writes data to the socket using the WRITE( ) method, a deadlock condition can occur. That is, the client is waiting for the server to send data, and the server (regardless of the Write operation) is waiting for the client connection to send data that starts the SSL connection.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.