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

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

revision 29 by matty, Sat Jan 6 03:47:04 2001 UTC revision 30 by matty, Fri Sep 14 13:51:38 2001 UTC
# Line 1  Line 1 
1  /*  /*
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     Protocol services - ISO layer     Protocol services - ISO layer
4     Copyright (C) Matthew Chapman 1999-2000     Copyright (C) Matthew Chapman 1999-2001
5        
6     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 57  iso_recv_msg(uint8 *code) Line 57  iso_recv_msg(uint8 *code)
57          in_uint8(s, version);          in_uint8(s, version);
58          if (version != 3)          if (version != 3)
59          {          {
60                  ERROR("TPKT v%d\n", version);                  error("TPKT v%d\n", version);
61                  return False;                  return False;
62          }          }
63    
# Line 123  iso_recv() Line 123  iso_recv()
123          s = iso_recv_msg(&code);          s = iso_recv_msg(&code);
124          if ((s == NULL) || (code != ISO_PDU_DT))          if ((s == NULL) || (code != ISO_PDU_DT))
125          {          {
126                  ERROR("expected DT, got %d\n", code);                  error("expected DT, got %d\n", code);
127                  return False;                  return False;
128          }          }
129    
# Line 143  iso_connect(char *server) Line 143  iso_connect(char *server)
143    
144          if ((iso_recv_msg(&code) == NULL) || (code != ISO_PDU_CC))          if ((iso_recv_msg(&code) == NULL) || (code != ISO_PDU_CC))
145          {          {
146                  ERROR("expected CC, got %d\n", code);                  error("expected CC, got %d\n", code);
147                  tcp_disconnect();                  tcp_disconnect();
148                  return False;                  return False;
149          }          }

Legend:
Removed from v.29  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26