IdentServer.addNetwork Member

Syntax

object.addNetwork(net, serv);

Arguments

ArgumentSummary
net
serv

Returns

Remarks

See Also

Source Code

function ident_add(net, serv)
{
var addr, dnsRecord = this.dns.resolve(serv.hostname, 0);
while (dnsRecord.hasMore())
{
addr = dnsRecord.getNextAddrAsString();
this.responses.push({net: net, ip: addr, port: serv.port,
username: net.INITIAL_NAME || net.INITIAL_NICK});
}
if (this.responses.length == 0)
return false;
// Start the ident server if necessary.
if (!this.listening)
return this.start();
return true;
}