update comments. Thanks to Scott Marovich (marovich at hpl.hp.com) for pointing out that 3 is probably a synchronise update PDU
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@894 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
64c892b8c9
commit
df0454d183
24
rdp5.c
24
rdp5.c
@ -1,6 +1,6 @@
|
|||||||
/* -*- c-basic-offset: 8 -*-
|
/* -*- c-basic-offset: 8 -*-
|
||||||
rdesktop: A Remote Desktop Protocol client.
|
rdesktop: A Remote Desktop Protocol client.
|
||||||
Protocol services - Multipoint Communications Service
|
Protocol services - RDP5 short form PDU processing
|
||||||
Copyright (C) Matthew Chapman 1999-2005
|
Copyright (C) Matthew Chapman 1999-2005
|
||||||
Copyright (C) Erik Forsberg 2003
|
Copyright (C) Erik Forsberg 2003
|
||||||
|
|
||||||
@ -80,39 +80,35 @@ rdp5_process(STREAM s)
|
|||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
/* Thanks to Jeroen Meijer <jdmeijer at yahoo
|
case 0: /* update orders */
|
||||||
dot com> for finding out the meaning of
|
|
||||||
most of the opcodes here. Especially opcode
|
|
||||||
8! :) */
|
|
||||||
case 0: /* orders */
|
|
||||||
in_uint16_le(ts, count);
|
in_uint16_le(ts, count);
|
||||||
process_orders(ts, count);
|
process_orders(ts, count);
|
||||||
break;
|
break;
|
||||||
case 1: /* bitmap update (???) */
|
case 1: /* update bitmap */
|
||||||
in_uint8s(ts, 2); /* part length */
|
in_uint8s(ts, 2); /* part length */
|
||||||
process_bitmap_updates(ts);
|
process_bitmap_updates(ts);
|
||||||
break;
|
break;
|
||||||
case 2: /* palette */
|
case 2: /* update palette */
|
||||||
in_uint8s(ts, 2); /* uint16 = 2 */
|
in_uint8s(ts, 2); /* uint16 = 2 */
|
||||||
process_palette(ts);
|
process_palette(ts);
|
||||||
break;
|
break;
|
||||||
case 3: /* probably an palette with offset 3. Weird */
|
case 3: /* update synchronize */
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5: /* null pointer */
|
||||||
ui_set_null_cursor();
|
ui_set_null_cursor();
|
||||||
break;
|
break;
|
||||||
case 6: /* TODO: W2K3 SP1 sends this on connect */
|
case 6: /* default pointer */
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8: /* pointer position */
|
||||||
in_uint16_le(ts, x);
|
in_uint16_le(ts, x);
|
||||||
in_uint16_le(ts, y);
|
in_uint16_le(ts, y);
|
||||||
if (s_check(ts))
|
if (s_check(ts))
|
||||||
ui_move_pointer(x, y);
|
ui_move_pointer(x, y);
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9: /* color pointer */
|
||||||
process_colour_pointer_pdu(ts);
|
process_colour_pointer_pdu(ts);
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10: /* cached pointer */
|
||||||
process_cached_pointer_pdu(ts);
|
process_cached_pointer_pdu(ts);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user