CIRCServer.onDataAvailable Member

Syntax

object.onDataAvailable(e);

Arguments

ArgumentSummary
e

Returns

Remarks

See Also

Source Code

function serv_ppline(e)
{
var line = e.line;
if (line == "")
return false;
var incomplete = (line[line.length - 1] != '\n');
var lines = line.split("\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("server", "rawdata", this, "onRawData");
ev.data = lines[i].replace(/\r/g, "");
if (ev.data)
{
if (ev.data.match(/^(?::[^ ]+ )?(?:32[123]|352|315) /i))
this.parent.eventPump.addBulkEvent(ev);
else
this.parent.eventPump.addEvent(ev);
}
}
return true;
}