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
connection-parms
A character string expression that contains a space-separated list of one or more socket connection parameters.Table 72 describes each socket connection parameter, which can be included in this string.
Note: Connections to an SSL-enabled server socket require the management of public keys on the client (SSL client) and private keys on the server (SSL server). For ABL sockets, the SSL client is the ABL session initiating the SSL connection on a socket object and the SSL server is the ABL session enabling SSL connections on a server socket object. For information on using SSL to secure an ABL socket connection, see the sections on sockets in OpenEdge Development: Programming Interfaces. For more information on SSL and managing private key and digital certificate stores for OpenEdge SSL clients and servers, see OpenEdge Getting Started: Core Business Services.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.
OpenEdge Release 10.2B
|