svnno****@sourc*****
svnno****@sourc*****
2007年 11月 30日 (金) 19:58:01 JST
Revision: 262 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=262 Author: flyson Date: 2007-11-30 19:58:01 +0900 (Fri, 30 Nov 2007) Log Message: ----------- nsIBufferedOutputStream の使用を再開 Modified Paths: -------------- trunk/bbs2chreader/components/b2rServer.js -------------- next part -------------- Modified: trunk/bbs2chreader/components/b2rServer.js =================================================================== --- trunk/bbs2chreader/components/b2rServer.js 2007-11-30 10:39:15 UTC (rev 261) +++ trunk/bbs2chreader/components/b2rServer.js 2007-11-30 10:58:01 UTC (rev 262) @@ -116,7 +116,8 @@ aTransport.setTimeout(Ci.nsITransport.TIMEOUT_READ_WRITE, 30); var input = aTransport.openInputStream(Ci.nsITransport.OPEN_BLOCKING, 0, 0); - var output = aTransport.openOutputStream(Ci.nsITransport.OPEN_BLOCKING, 1024*16, 64); + var output = XPC.createInstance("@mozilla.org/network/buffered-output-stream;1", "nsIBufferedOutputStream"); + output.init(aTransport.openOutputStream(Ci.nsITransport.OPEN_BLOCKING, 0, 0), 1024*16); new b2rServerHandler(aServerSocket.port, input, output); // dump("b2rServer.onSocketAccepted\n"); @@ -233,7 +234,8 @@ aTransport.setTimeout(Ci.nsITransport.TIMEOUT_READ_WRITE, 30); var input = aTransport.openInputStream(Ci.nsITransport.OPEN_BLOCKING, 0, 0); - var output = aTransport.openOutputStream(Ci.nsITransport.OPEN_BLOCKING, 1024*16, 64); + var output = XPC.createInstance("@mozilla.org/network/buffered-output-stream;1", "nsIBufferedOutputStream"); + output.init(aTransport.openOutputStream(Ci.nsITransport.OPEN_BLOCKING, 0, 0), 1024*16); new b2rServerHandler(aServerSocket.port, input, output); // dump("b2rServer.onSocketAccepted\n");