IdentListener.onDataAvailable Member

Syntax

object.onDataAvailable(e);

Arguments

ArgumentSummary
e

Returns

Remarks

See Also

Source Code

function ident_listener_dataavailable(e)
{
var incomplete = (e.line.substr(-2) != "\r\n");
var lines = e.line.split(/\r\n/);
if (this.savedLine)
{
lines[0] = this.savedLine + lines[0];
this.savedLine = "";
}
if (incomplete)
this.savedLine = lines.pop()
for (var i in lines)
{
var ev = new CEvent("ident-listener", "rawdata", this, "onRawData");
ev.line = lines[i];
this.server.eventPump.routeEvent(ev);
}
}