[jdev] Re: Stream compression with jzlib?
Hey Vinod, Wildfire also uses jzlib for stream compression. Since Wildfire is an open source server you can take a peek at the code. Regards, -- Gato Vinod Panicker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 2/27/06, Vinod Panicker [EMAIL PROTECTED] wrote: Hi, Has anyone successfully managed to do Stream Compression with jzlib? I've been trying unsuccessfully for the past few days... Its not matching the output generated by the original C zlib library, nor is jzlib able to decompress its own compressed output. Is it broken? Got it working now :) Anyone else who uses this, don't use inflateInit() with an argument. Use the no argument method. Regards, Vinod.
Re: [jdev] Re: Stream compression with jzlib?
Hi, On 2/27/06, Gaston Dombiak [EMAIL PROTECTED] wrote: Hey Vinod, Wildfire also uses jzlib for stream compression. Since Wildfire is an open source server you can take a peek at the code. I took a look at SocketConnection.java, where ZOutputStream is being used. Have you tested for compatibility with other stream compression implementations? I didn't get expected results when using ZOutputStream and ZInputStream. I'm currently using the ZStream class directly. Regards, Vinod.
[jdev] Re: Re: Stream compression with jzlib?
Hey Vinod, Stream compression was tested against 3 clients that none of them is written in Java. The clients are: Exodus, Pandion and MiniClient. Smack library also supports stream compression but we are also using jzlib in Smack so that one doesn't count for you. :) Regards, -- Gato Vinod Panicker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, On 2/27/06, Gaston Dombiak [EMAIL PROTECTED] wrote: Hey Vinod, Wildfire also uses jzlib for stream compression. Since Wildfire is an open source server you can take a peek at the code. I took a look at SocketConnection.java, where ZOutputStream is being used. Have you tested for compatibility with other stream compression implementations? I didn't get expected results when using ZOutputStream and ZInputStream. I'm currently using the ZStream class directly. Regards, Vinod.
Re: [jdev] Re: Re: Stream compression with jzlib?
fyi: when using the ICSharpZipLib with .net I found that the one stream constructor's logic was in fact reversed! So I'd say test it with the boolean missing, and true, and false. On 2/27/06, Gaston Dombiak [EMAIL PROTECTED] wrote: Hey Vinod, Stream compression was tested against 3 clients that none of them is written in Java. The clients are: Exodus, Pandion and MiniClient. Smack library also supports stream compression but we are also using jzlib in Smack so that one doesn't count for you. :) Regards, -- Gato Vinod Panicker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, On 2/27/06, Gaston Dombiak [EMAIL PROTECTED] wrote: Hey Vinod, Wildfire also uses jzlib for stream compression. Since Wildfire is an open source server you can take a peek at the code. I took a look at SocketConnection.java, where ZOutputStream is being used. Have you tested for compatibility with other stream compression implementations? I didn't get expected results when using ZOutputStream and ZInputStream. I'm currently using the ZStream class directly. Regards, Vinod. -- - Norman Rasmussen - Email: [EMAIL PROTECTED] - Home page: http://norman.rasmussen.co.za/
[jdev] Re: Stream compression with jzlib?
Norman Rasmussen schrieb: fyi: when using the ICSharpZipLib with .net I found that the one stream constructor's logic was in fact reversed! So I'd say test it with the boolean missing, and true, and false. here is the code of my socket class which is using the ICSharpZipLib and which was tested from Gato with the MiniClient. I also tested it with the SoapBox server. https://thecave.myjabber.net/svn/ags/XMPP/agsxmpp/trunk/net/ClientSocket.cs Alex
[jdev] jabber2d's roster.xml deficiencies
Recently I discovered what many looks like many other before me have already figured out. The code to give new users a default roster only works one way. It doesn't add roster entries for those who are listed in the roster.xml file like one would expect. For example, this item appears in the roster.xml distribution file file: item name='Helpdesk' jid='[EMAIL PROTECTED]' subscription='both' groupSupport/group /item If I was to use that file, then new users get this [EMAIL PROTECTED] added to their roster, but [EMAIL PROTECTED] doesn't get a corresponding item for the new user in their roster. That makes the roster.xml almost useless, because even though the new user thinks they are subscribed to Helpdesk, when Helpdesk's presence changes, the new user never gets updates because it appears that jabber2d looks at helpdesks roster entries to determine who to send presence to. Furthermore, when Helpdesk gets presence updates about the new user, it often doesn't know what to do with them, since the new user isn't in helpdesks roster. Perhaps someone can tell me why this functionality was left out? Maybe I'm missing some information? I've read that others have used scripts to get around the problem, but I've looked at the mod_template_roster.c code and it doesn't look like it will be too hard to fix the problem there. If I fix the problem can I contribute the code to the project or something? Thanks, Robert Temple