Advertisement Jump to content
Sign in to follow this  

MCCP with Zlib in C# - Help?

This topic is 3866 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
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!