Jump to content
  • Advertisement
Sign in to follow this  
LebenOjanen

MCCP with Zlib in C# - Help?

This topic is 3712 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone, I'm working on a MUD in C# (Yeah I know, I should use lua or python or whatnot, but I'm not, sue me.) and I've implemented most of the telnet options like MXP, MSP, etc. Now, I've finished the negotiation for MCCP and it works just fine but the problem comes when I try to actually compress the data. For those who don't know this just means that the data sent from the server to the client is zlib compressed. I've downloaded Zlib for C# from the official zlib website link, but I can't seem to compress the stream properly. I won't bother posting code because whatever I'm doing must be totally off. Basically I want to take a byte array, compress it via zlib, then return it. Is there any chance someone who has used Zlib for C# could help me out with some basic pseudo-code (or maybe even proper examples) for handling this properly? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!