public void Send(RdpConnection rdpConn) { writer.Flush(); try { rdpConn.Send(memStream.ToArray()); } catch (RdpFragmentationException) { log.Error("Failed to send packet that was too large"); } }