CIRCServer.onStreamDataAvailable Member
Syntax
object.onStreamDataAvailable(request, inStream, sourceOffset, count);
Arguments
Argument | Summary |
---|---|
request | |
inStream | |
sourceOffset | |
count |
Returns
Remarks
See Also
Source Code
function serv_sda (request, inStream, sourceOffset, count)
{
var ev = new CEvent ("server", "data-available", this,
"onDataAvailable");
ev.line = this.connection.readData(0, count);
/* route data-available as we get it. the data-available handler does
* not do much, so we can probably get away with this without starving
* the UI even under heavy input traffic.
*/
this.parent.eventPump.routeEvent(ev);
}