Re: Sending Binary Data over a Socket

2007-07-02 Thread Jeff Walden
Anant Narayanan wrote: > I need to to be able to send arbitrary amounts of binary data from and > to the socket, even strings used in the protocol are encoded as UTF-8 > unicode characters. While going through the XPCOM documentation at > xulplanet.com, I came across the nsIBinaryInputStream and

Re: Sending Binary Data over a Socket

2007-07-02 Thread timeless
stay away from xpconnect. nsIUnicharOutputStream ___ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom

Sending Binary Data over a Socket

2007-07-02 Thread Anant Narayanan
Hi, I'm trying to implement the 9P2000 protocol for Mozilla in JavaScript, and came across XPConnect which seems to be the right tool for the job. Although I am able to understand how sockets can work with XPConnect, it seems that they were designed primarily to accept and provide text as