Goto:
4C Home
|
4C Docs
|
4C External Libraries Home
|
FCCom Home
|
FCCom Function List
Open()
Open()
Purpose:
-
FCCom::Open() establishes a connection to the server associated with
<connident>.
Usage:
-
-
ret = FCCom::Open(<connident>);
Arguments:
-
integer <connident> -
The connection identifier returned by an earlier call to FCComm::Alloc().
Returns:
-
0 - OK
-
-1 - Error
Where Used:
-
FCCom:Open() can be called anytime after a connection has been allocated
and initialized with the correct connection options.
Example:
-
Example
Description:
-
FCCom::Open() 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::Open() is equivalent to FCCom::Connect().
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