context: function dfile_onSocketAccepted(socket, transport){    this.state.getAccept();        this.connection.accept(transport, null);        this.state.socketConnected();        this.position = 0;    this.ackPosition = 0;    this.remoteIP = transport.host;        // We now have the remote IP, so need to rename.    var newkey = escape(this.name) + ":" + this.remoteIP + ":" + this.port;    renameProperty(this.parent.files, this.key, newkey);    this.key = newkey;        this.eventPump.addEvent(new CEvent("dcc-file", "connect", this, "onConnect"));        try {        this.filestream = Components.classes["@mozilla.org/binaryinputstream;1"];        this.filestream = this.filestream.createInstance(nsIBinaryInputStream);        this.filestream.setInputStream(this.localFile.baseInputStream);                // Start the reading!        var d = this.filestream.readBytes(this.parent.sendChunk);        this.position += d.length;        this.connection.sendData(d);    }    catch(ex)    {        dd(ex);    }        // Start the reading!    if (jsenv.HAS_NSPR_EVENTQ)        this.connection.startAsyncRead(this);    else        this.eventPump.addEvent(new CEvent("dcc-file", "poll", this, "onPoll"));}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/0918cade427e1856c2e2bcfdefa8b4ea3e457b73/dcc.js/buggy/js/lib/dcc.js