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

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

revision 410 by forsberg, Fri Jun 6 10:47:34 2003 UTC revision 432 by matthewc, Tue Jul 1 09:31:25 2003 UTC
# Line 849  process_data_pdu(STREAM s) Line 849  process_data_pdu(STREAM s)
849  }  }
850    
851  /* Process incoming packets */  /* Process incoming packets */
852  void  BOOL
853  rdp_main_loop(void)  rdp_main_loop(void)
854  {  {
855          uint8 type;          uint8 type;
# Line 864  rdp_main_loop(void) Line 864  rdp_main_loop(void)
864                                  break;                                  break;
865    
866                          case RDP_PDU_DEACTIVATE:                          case RDP_PDU_DEACTIVATE:
867                                    DEBUG(("RDP_PDU_DEACTIVATE\n"));
868                                    /* We thought we could detect a clean
869                                       shutdown of the session by this
870                                       packet, but it seems Windows 2003
871                                       is sending us one of these when we
872                                       reconnect to a disconnected session
873                                       return True; */
874                                  break;                                  break;
875    
876                          case RDP_PDU_DATA:                          case RDP_PDU_DATA:
# Line 877  rdp_main_loop(void) Line 884  rdp_main_loop(void)
884                                  unimpl("PDU %d\n", type);                                  unimpl("PDU %d\n", type);
885                  }                  }
886          }          }
887            return True;
888            /* We want to detect if we got a clean shutdown, but we
889            can't. Se above.  
890            return False;  */
891  }  }
892    
893  /* Establish a connection up to the RDP layer */  /* Establish a connection up to the RDP layer */
# Line 884  BOOL Line 895  BOOL
895  rdp_connect(char *server, uint32 flags, char *domain, char *password,  rdp_connect(char *server, uint32 flags, char *domain, char *password,
896              char *command, char *directory)              char *command, char *directory)
897  {  {
         if (use_rdp5)  
                 channels_init();  
   
898          if (!sec_connect(server, username))          if (!sec_connect(server, username))
899                  return False;                  return False;
900    

Legend:
Removed from v.410  
changed lines
  Added in v.432

  ViewVC Help
Powered by ViewVC 1.1.26