CIRCNetwork.connect Member

Syntax

object.connect(requireSecurity);

Arguments

ArgumentSummary
requireSecurity

Returns

Remarks

See Also

Source Code

function net_connect(requireSecurity)
{
if ("primServ" in this && this.primServ.isConnected)
return true;
// We need to test for secure servers in the network object here,
// because without them all connection attempts will fail anyway.
if (requireSecurity && !this.hasSecureServer())
{
// No secure server, cope.
ev = new CEvent ("network", "error", this, "onError");
ev.server = this;
ev.debug = "No connection attempted: no secure servers in list";
ev.errorCode = JSIRC_ERR_NO_SECURE;
this.eventPump.addEvent(ev);
return false;
}
this.state = NET_CONNECTING;
this.connectAttempt = 0; // actual connection attempts
this.connectCandidate = 0; // incl. requireSecurity non-attempts
this.nextHost = 0;
this.requireSecurity = requireSecurity || false;
this.immediateConnect({"password": null});
return true;
}