I'm trying to implement MCCP on a Circle-based mud and had some questions about how to go about it. I wouldn't say I have in-depth coding experience, but given a few examples I should be able to put it together.
I've done what I believe are the bare essentials but I'm not sure if the problem lies in the code, or the client itself. I'm running a version of the code on my own PC and connecting to it locally via zMud - I'll explain what I've done and hopefully someone can point me in the right direction from here.
Code: IAC WILL COMPRESS2
Client: IAC DO COMPRESS2
Code: IAC SB COMPRESS2 IAC SE
At this point, I get instant compression errors which leads me to believe my simple implementation is incorrect. Going through a bit of debugging, I believe the client is sending back an IAC DONT COMPRESS at this point which is generating the errors. The questions I have are: is my simple implementation correct, or do I need to delve into the whole zlib area? Can I get MCCP by connecting to localhost? Can anyone provide me with some good references or examples to help me along?
I've done what I believe are the bare essentials but I'm not sure if the problem lies in the code, or the client itself. I'm running a version of the code on my own PC and connecting to it locally via zMud - I'll explain what I've done and hopefully someone can point me in the right direction from here.
Code: IAC WILL COMPRESS2
Client: IAC DO COMPRESS2
Code: IAC SB COMPRESS2 IAC SE
At this point, I get instant compression errors which leads me to believe my simple implementation is incorrect. Going through a bit of debugging, I believe the client is sending back an IAC DONT COMPRESS at this point which is generating the errors. The questions I have are: is my simple implementation correct, or do I need to delve into the whole zlib area? Can I get MCCP by connecting to localhost? Can anyone provide me with some good references or examples to help me along?