#if WITH_DEBUG
DEBUG(("RDP packet #%d, (type %x, length %u)\n", ++g_packetno, *type, length));
- //hexdump(g_next_packet, length);
+ hexdump(g_next_packet, length);
#endif /* */
g_next_packet += length;
}
/* Send a control PDU */
-static void
+void
rdp_send_control(uint16 action)
{
STREAM s;
}
/* Send a synchronisation PDU */
-static void
-rdp_send_synchronise(void)
+void
+rdp_send_synchronise(uint16 id)
{
STREAM s;
s = rdp_init_data(4);
out_uint16_le(s, 1); /* type */
- out_uint16_le(s, 1002);
+ out_uint16_le(s, id);
s_mark_end(s);
rdp_send_data(s, RDP_DATA_PDU_SYNCHRONISE);