120 |
out_uint32_le(s, rdp_shareid); |
out_uint32_le(s, rdp_shareid); |
121 |
out_uint8(s, 0); /* pad */ |
out_uint8(s, 0); /* pad */ |
122 |
out_uint8(s, 1); /* streamid */ |
out_uint8(s, 1); /* streamid */ |
123 |
out_uint16(s, (length - 14)); |
out_uint16_le(s, (length - 14)); |
124 |
out_uint8(s, data_pdu_type); |
out_uint8(s, data_pdu_type); |
125 |
out_uint8(s, 0); /* compress_type */ |
out_uint8(s, 0); /* compress_type */ |
126 |
out_uint16(s, 0); /* compress_len */ |
out_uint16(s, 0); /* compress_len */ |
196 |
|
|
197 |
/* Send a synchronisation PDU */ |
/* Send a synchronisation PDU */ |
198 |
static void |
static void |
199 |
rdp_send_synchronise() |
rdp_send_synchronise(void) |
200 |
{ |
{ |
201 |
STREAM s; |
STREAM s; |
202 |
|
|
274 |
out_uint16_le(s, RDP_CAPLEN_BITMAP); |
out_uint16_le(s, RDP_CAPLEN_BITMAP); |
275 |
|
|
276 |
out_uint16_le(s, 8); /* Preferred BPP */ |
out_uint16_le(s, 8); /* Preferred BPP */ |
277 |
out_uint16(s, 1); /* Receive 1 BPP */ |
out_uint16_le(s, 1); /* Receive 1 BPP */ |
278 |
out_uint16(s, 1); /* Receive 4 BPP */ |
out_uint16_le(s, 1); /* Receive 4 BPP */ |
279 |
out_uint16_le(s, 1); /* Receive 8 BPP */ |
out_uint16_le(s, 1); /* Receive 8 BPP */ |
280 |
out_uint16_le(s, 800); /* Desktop width */ |
out_uint16_le(s, 800); /* Desktop width */ |
281 |
out_uint16_le(s, 600); /* Desktop height */ |
out_uint16_le(s, 600); /* Desktop height */ |
320 |
out_uint8p(s, order_caps, 32); /* Orders supported */ |
out_uint8p(s, order_caps, 32); /* Orders supported */ |
321 |
out_uint16_le(s, 0x6a1); /* Text capability flags */ |
out_uint16_le(s, 0x6a1); /* Text capability flags */ |
322 |
out_uint8s(s, 6); /* Pad */ |
out_uint8s(s, 6); /* Pad */ |
323 |
out_uint32(s, desktop_save == False ? 0 : 0x38400); /* Desktop cache size */ |
out_uint32_le(s, desktop_save == False ? 0 : 0x38400); /* Desktop cache size */ |
324 |
out_uint32(s, 0); /* Unknown */ |
out_uint32(s, 0); /* Unknown */ |
325 |
out_uint32(s, 0x4e4); /* Unknown */ |
out_uint32_le(s, 0x4e4); /* Unknown */ |
326 |
} |
} |
327 |
|
|
328 |
/* Output bitmap cache capability set */ |
/* Output bitmap cache capability set */ |
434 |
|
|
435 |
/* Send a confirm active PDU */ |
/* Send a confirm active PDU */ |
436 |
static void |
static void |
437 |
rdp_send_confirm_active() |
rdp_send_confirm_active(void) |
438 |
{ |
{ |
439 |
STREAM s; |
STREAM s; |
440 |
uint16 caplen = |
uint16 caplen = |
681 |
|
|
682 |
/* Process incoming packets */ |
/* Process incoming packets */ |
683 |
void |
void |
684 |
rdp_main_loop() |
rdp_main_loop(void) |
685 |
{ |
{ |
686 |
uint8 type; |
uint8 type; |
687 |
STREAM s; |
STREAM s; |
721 |
|
|
722 |
/* Disconnect from the RDP layer */ |
/* Disconnect from the RDP layer */ |
723 |
void |
void |
724 |
rdp_disconnect() |
rdp_disconnect(void) |
725 |
{ |
{ |
726 |
sec_disconnect(); |
sec_disconnect(); |
727 |
} |
} |