private void WriteMessage(Message message)
    {
        int sendLimit = mRecordLayer.GetSendLimit();
        int num       = sendLimit - 12;

        if (num < 1)
        {
            throw new TlsFatalAlert(80);
        }
        int num2 = message.Body.Length;
        int num3 = 0;

        do
        {
            int num4 = Math.Min(num2 - num3, num);
            WriteHandshakeFragment(message, num3, num4);
            num3 += num4;
        }while (num3 < num2);
    }
 public virtual int GetSendLimit()
 {
     return(mRecordLayer.GetSendLimit());
 }