CIRCNetwork Prototype
Syntax
var object = new CIRCNetwork(name, serverList, eventPump, temporary);
Arguments
| Argument | Summary |
|---|---|
| name | |
| serverList | |
| eventPump | |
| temporary |
Remarks
Members
| Member | Summary |
|---|---|
| abortList | |
| addServer | |
| cancel | Cancels the network's connection (whatever its current state). |
| clearServerList | |
| connect | |
| delayedConnect | Trigger an onDoConnect event after a delay. |
| dispatch | |
| display | Displays a network-centric message on the most appropriate view. |
| displayHere | |
| doAutoPerform | |
| feedback | |
| getFontCSS | |
| getLCFunction | |
| getReconnectDelayMs | Calculates delay before the next automatic connection attempt. |
| getURL | Returns the IRC URL representation of this network. |
| getUser | |
| hasOnlySecureServers | Returns true iif a network only has secure servers in its list. |
| hasSecureServer | Returns true iif a network has a secure server in its list. |
| ignore | |
| immediateConnect | Immediately trigger an onDoConnect event. Use delayedConnect for automatic repeat attempts, instead, to throttle the attempts to a reasonable pace. |
| isConnected | Returns true iff this network has a socket-level connection. |
| isRunningList | |
| list | |
| listInit | |
| on001 | Welcome! |
| on002 | your host is |
| on003 | server born-on date |
| on004 | server id |
| on005 | server features |
| on221 | |
| on250 | highest connection count |
| on251 | users |
| on252 | opers online (in params[2]) |
| on254 | channels found (in params[2]) |
| on255 | link info |
| on263 | 'try again' |
| on265 | local user details |
| on266 | global user details |
| on290 | CAPAB Response |
| on301 | user away message |
| on302 | userhost reply |
| on303 | ISON (aka notify) reply |
| on305 | away off reply |
| on306 | away on reply |
| on311 | whois name |
| on312 | whois server |
| on315 | end of WHO |
| on317 | whois idle time |
| on318 | whois end of whois |
| on319 | whois channels |
| on321 | LIST reply header |
| on322 | LIST reply |
| on323 | end of LIST reply |
| on330 | ircu's 330 numeric ("X is logged in as Y") |
| on341 | invite reply |
| on352 | |
| on372 | MOTD line |
| on375 | start of MOTD |
| on376 | end of MOTD |
| on401 | ERR_NOSUCHNICK |
| on402 | ERR_NOSUCHSERVER |
| on403 | ERR_NOSUCHCHANNEL |
| on421 | unknown command reply |
| on422 | no MOTD |
| on433 | nickname in use |
| on464 | 464; "invalid or missing password", occurs as a reply to both OPER and sometimes initially during user registration. |
| onCTCPReplyPing | |
| onDisconnect | |
| onDoConnect | |
| onError | |
| onFindEnd | |
| onInfo | |
| onInit | |
| onInvite | invite message |
| onNick | |
| onNotice | |
| onPing | |
| onPong | |
| onPrivmsg | |
| onStartConnect | |
| onUnknown | |
| onUnknownCTCPReply | |
| onUnknownWhois | misc whois line |
| onUserMode | |
| onWallops | |
| performTabMatch | |
| quit | Disconnects the network with a given reason. |
| reclaimName | |
| unignore |
See Also
Source Code
function CIRCNetwork (name, serverList, eventPump, temporary)
{
this.unicodeName = name;
this.viewName = name;
this.canonicalName = name;
this.encodedName = name;
this.servers = new Object();
this.serverList = new Array();
this.ignoreList = new Object();
this.ignoreMaskCache = new Object();
this.state = NET_OFFLINE;
this.temporary = Boolean(temporary);
for (var i = 0; i < serverList.length; ++i)
{
var server = serverList[i];
var password = ("password" in server) ? server.password : null;
var isSecure = ("isSecure" in server) ? server.isSecure : false;
this.serverList.push(new CIRCServer(this, server.name, server.port, isSecure,
password));
}
this.eventPump = eventPump;
if ("onInit" in this)
this.onInit();
}