public void SplitToChunks()
{
ChannelChunk[] chunks = serverSessionContext.SplitToChunks(channelId, virtualChannelData);
if (chunks != null && chunks.Length > 0)
{
rawPdus = new Collection<Virtual_Channel_RAW_Server_Pdu>();
for (int i = 0; i < chunks.Length; ++i)
{
Virtual_Channel_RAW_Server_Pdu rawPdu = new Virtual_Channel_RAW_Server_Pdu(serverSessionContext);
rawPdu.channelPduHeader = chunks[i].channelPduHeader;
rawPdu.virtualChannelData = chunks[i].chunkData;
rawPdus.Add(rawPdu);
RdpbcgrUtility.FillCommonHeader(ref rawPdus[i].commonHeader,
TS_SECURITY_HEADER_flags_Values.SEC_IGNORE_SEQNO
| TS_SECURITY_HEADER_flags_Values.SEC_RESET_SEQNO,
serverSessionContext,
channelId);
}
}
}