/[rdesktop]/sourceforge.net/trunk/rdesktop/channels.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/channels.c

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

revision 434 by matthewc, Tue Jul 1 09:31:25 2003 UTC revision 435 by astrand, Wed Jul 9 09:18:20 2003 UTC
# Line 67  channel_register(char *name, uint32 flag Line 67  channel_register(char *name, uint32 flag
67  }  }
68    
69  STREAM  STREAM
70  channel_init(VCHANNEL *channel, uint32 length)  channel_init(VCHANNEL * channel, uint32 length)
71  {  {
72          STREAM s;          STREAM s;
73    
# Line 77  channel_init(VCHANNEL *channel, uint32 l Line 77  channel_init(VCHANNEL *channel, uint32 l
77  }  }
78    
79  void  void
80  channel_send(STREAM s, VCHANNEL *channel)  channel_send(STREAM s, VCHANNEL * channel)
81  {  {
82          uint32 length, flags;          uint32 length, flags;
83          uint32 thislength, remaining;          uint32 thislength, remaining;
# Line 89  channel_send(STREAM s, VCHANNEL *channel Line 89  channel_send(STREAM s, VCHANNEL *channel
89    
90          thislength = MIN(length, CHANNEL_CHUNK_LENGTH);          thislength = MIN(length, CHANNEL_CHUNK_LENGTH);
91          remaining = length - thislength;          remaining = length - thislength;
92          flags = (remaining == 0) ? CHANNEL_FLAG_FIRST|CHANNEL_FLAG_LAST : CHANNEL_FLAG_FIRST;          flags = (remaining == 0) ? CHANNEL_FLAG_FIRST | CHANNEL_FLAG_LAST : CHANNEL_FLAG_FIRST;
93          if (channel->flags & CHANNEL_OPTION_SHOW_PROTOCOL)          if (channel->flags & CHANNEL_OPTION_SHOW_PROTOCOL)
94                  flags |= CHANNEL_FLAG_SHOW_PROTOCOL;                  flags |= CHANNEL_FLAG_SHOW_PROTOCOL;
95    
# Line 168  channel_process(STREAM s, uint16 mcs_cha Line 168  channel_process(STREAM s, uint16 mcs_cha
168                  }                  }
169          }          }
170  }  }
   

Legend:
Removed from v.434  
changed lines
  Added in v.435

  ViewVC Help
Powered by ViewVC 1.1.26