Been trying to get MXP enabled on a custom codebase.
Using C# and .NET and I've got a TCPClient and NetworkStream object.
I've tried sending a byte array with the codes (IAC, SB, TELOPT_MXP, IAC, SE) as well as the MXP START codes. But I can't for the life of me get it to enable.
Anyone familiar with C# and the TCPClient/NetworkStream and could give me some pointers?
----------
byte[] buffer = new byte[5];
buffer[0] = User.IAC;
buffer[1] = User.SB;
buffer[2] = (byte)User.TELOPT_MXP;
buffer[3] = User.IAC;
buffer[4] = User.SE;
clientStream.Write(buffer, 0, 5);
buffer = new byte[4];
buffer = encoder.GetBytes(User.ESC + "[6z");
clientStream.Write(buffer, 0, 4);
-----------
Thanks!
Jason (wjmurdick at gmail dot com)
Using C# and .NET and I've got a TCPClient and NetworkStream object.
I've tried sending a byte array with the codes (IAC, SB, TELOPT_MXP, IAC, SE) as well as the MXP START codes. But I can't for the life of me get it to enable.
Anyone familiar with C# and the TCPClient/NetworkStream and could give me some pointers?
----------
byte[] buffer = new byte[5];
buffer[0] = User.IAC;
buffer[1] = User.SB;
buffer[2] = (byte)User.TELOPT_MXP;
buffer[3] = User.IAC;
buffer[4] = User.SE;
clientStream.Write(buffer, 0, 5);
buffer = new byte[4];
buffer = encoder.GetBytes(User.ESC + "[6z");
clientStream.Write(buffer, 0, 4);
-----------
Thanks!
Jason (wjmurdick at gmail dot com)