/[rdesktop]/sourceforge.net/trunk/rdesktop/rdp5.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdp5.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 428 by forsberg, Mon Jun 23 06:37:50 2003 UTC revision 508 by astrand, Wed Oct 22 10:55:11 2003 UTC
# Line 21  Line 21 
21    
22  #include "rdesktop.h"  #include "rdesktop.h"
23    
24  extern uint8 *next_packet;  extern uint8 *g_next_packet;
25    
26  void  void
27  rdp5_process(STREAM s, BOOL encryption)  rdp5_process(STREAM s, BOOL encryption)
# Line 45  rdp5_process(STREAM s, BOOL encryption) Line 45  rdp5_process(STREAM s, BOOL encryption)
45          {          {
46                  in_uint8(s, type);                  in_uint8(s, type);
47                  in_uint16_le(s, length);                  in_uint16_le(s, length);
48                  next_packet = next = s->p + length;                  g_next_packet = next = s->p + length;
49    
50                  switch (type)                  switch (type)
51                  {                  {
52                          /* Thanks to Jeroen Meijer <jdmeijer at yahoo                                  /* Thanks to Jeroen Meijer <jdmeijer at yahoo
53                             dot com> for finding out the meaning of                                     dot com> for finding out the meaning of
54                             most of the opcodes here. Especially opcode                                     most of the opcodes here. Especially opcode
55                             8! :) */                                     8! :) */
56                          case 0: /* orders */                          case 0: /* orders */
57                                  in_uint16_le(s, count);                                  in_uint16_le(s, count);
58                                  process_orders(s, count);                                  process_orders(s, count);
# Line 68  rdp5_process(STREAM s, BOOL encryption) Line 68  rdp5_process(STREAM s, BOOL encryption)
68                          case 3: /* probably an palette with offset 3. Weird */                          case 3: /* probably an palette with offset 3. Weird */
69                                  break;                                  break;
70                          case 5:                          case 5:
71                                  process_null_system_pointer_pdu(s);                                  ui_set_null_cursor();
72                                  break;                                  break;
73                          case 8:                          case 8:
74                                  in_uint16_le(s, x);                                  in_uint16_le(s, x);
75                                  in_uint16_le(s, y);                                  in_uint16_le(s, y);
76                                  if (s_check(s))                                  if (s_check(s))
# Line 89  rdp5_process(STREAM s, BOOL encryption) Line 89  rdp5_process(STREAM s, BOOL encryption)
89                  s->p = next;                  s->p = next;
90          }          }
91  }  }
   
 void  
 rdp5_process_channel(STREAM s, uint16 channelno)  
 {  
         rdp5_channel *channel;  
         channel = find_channel_by_channelno(channelno);  
         if (NULL != channel)  
         {  
                 channel->channelcallback(s, channelno);  
         }  
 }  

Legend:
Removed from v.428  
changed lines
  Added in v.508

  ViewVC Help
Powered by ViewVC 1.1.26