private static void MessageLoop(object state)
{
UnixGssFakeNegotiateStream thisRef = (UnixGssFakeNegotiateStream)state;
while (thisRef._dataMsgCount > 0)
{
byte[] inBuf = thisRef._framer.ReadDataFrame();
byte[] unwrapped = UnwrapMessage(thisRef._context, inBuf);
byte[] outMsg = WrapMessage(thisRef._context, unwrapped);
thisRef._framer.WriteDataFrame(outMsg, 0, outMsg.Length);
thisRef._dataMsgCount--;
}
}