rdp5.c revision 4b9d6701570cb98fd36e209314239d104ec584d3
/* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
Protocol services - RDP5 short form PDU processing
Copyright (C) Matthew Chapman 1999-2007
Copyright (C) Erik Forsberg 2003-2007
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* Oracle GPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the General Public License version 2 (GPLv2) at this time for any software where
* a choice of GPL license versions is made available with the language indicating
* that GPLv2 or any later version may be used, or where a choice of which version
* of the GPL is applied is otherwise unspecified.
*/
#include "rdesktop.h"
extern uint8 *g_next_packet;
extern RDPCOMP g_mppc_dict;
void
{
#if 0
printf("RDP5 data:\n");
#endif
while (s->p < s->end)
{
if (type & RDP5_COMPRESSED)
{
in_uint16_le(s, length);
type ^= RDP5_COMPRESSED;
}
else
{
ctype = 0;
in_uint16_le(s, length);
}
if (ctype & RDP_MPPC_COMPRESSED)
{
error("error while decompressing packet\n");
/* allocate memory and copy the uncompressed data into the temporary stream */
}
else
ts = s;
switch (type)
{
case 0: /* update orders */
break;
case 1: /* update bitmap */
break;
case 2: /* update palette */
break;
case 3: /* update synchronize */
break;
case 5: /* null pointer */
break;
case 6: /* default pointer */
break;
case 8: /* pointer position */
in_uint16_le(ts, x);
in_uint16_le(ts, y);
ui_move_pointer(x, y);
break;
case 9: /* color pointer */
break;
case 10: /* cached pointer */
break;
default:
}
s->p = next;
}
}