}
//System.out.printf("Sending %d bytes with flags %d\n", thisLength, flags);
s.setLittleEndian32(flags);
s.copyFromPacket(data, data_offset, s.getPosition(), thisLength);
s.incrementPosition(thisLength);
s.markEnd();
data_offset += thisLength;
if (RDPConnection.conf.secure != null) {
RDPConnection.conf.secure.send_to_channel(s, RDPConnection.conf.encryption ? Secure.SEC_ENCRYPT : 0, this.mcs_id());