Goto:
4C Home
|
4C Docs
|
4C External Libraries Home
|
FCCom Home
|
FCCom Function List
Connect()
Connect()
Purpose:
-
FCCom::Connect() establishes a connection to the server associated with
<connident>.
Usage:
-
-
ret = FCCom::Connect(<connident>);
Arguments:
-
integer <connident> -
The connection identifier returned by an earlier call to FCComm::Alloc().
Returns:
-
0 - OK
-
-1 - Error
Where Used:
-
FCCom:Connect() can be called anytime after a connection has been allocated
and initialized with the correct connection options.
Example:
-
Example
Description:
-
FCCom::Connect() establishes a connection to the server associated with
<connident>.
If no Port number has been explicitly set, then FCCom will default to using
port 80 for non SSL connections and port 443 for SSL connections.
FCCom::Connect() is equivalent to FCCom::Open().
It is not necessary to call FCCom::Open() or FCCom::Connect() before
issuing an FCCom::HttpRequest() because FCCom::HttpRequest() will first
open the connection if it is not currently open.
Calling either FCCom::Connect() or FCCom::Open() first may help with
debugging.
Bugs/Features/Comments:
-
See Also:
-
FCCom Function List
Back to Top