Don't use NS_*_CAST any more -- use C++ casts instead

2007-07-02 Thread Jeff Walden
Historically, Mozilla has used macros to wrap C++ casts, for portability to compilers supporting only C and not C++ casts. A year ago (see bug 348748), these macros were switched over to expand to C++ casts. In that time nobody's complained, and gfx mostly doesn't even use the macros, intentio

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

drag and drop with non-string data?

2007-07-02 Thread Klaus Nowikow
Hi, I am trying to drag some data in form of a nsIRDFResource from one window of my xulrunner application to another one. Creating an interface pointer object (@mozilla.org/supports-interface-pointer;1) and adding this to the SupportsArray fails when I try to get the transfer data at the drop sit

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