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

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

revision 82 by astrand, Tue Jul 30 07:18:48 2002 UTC revision 275 by astrand, Tue Nov 19 14:48:02 2002 UTC
# Line 1  Line 1 
1  /*  /*
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     Protocol services - TCP layer     Protocol services - TCP layer
4     Copyright (C) Matthew Chapman 1999-2001     Copyright (C) Matthew Chapman 1999-2002
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 84  tcp_recv(int length) Line 84  tcp_recv(int length)
84    
85          while (length > 0)          while (length > 0)
86          {          {
87                  ui_select(sock);                  if (!ui_select(sock))
88                            /* User quit */
89                            return NULL;
90    
91                  rcvd = recv(sock, in.end, length, 0);                  rcvd = recv(sock, in.end, length, 0);
92                  if (rcvd == -1)                  if (rcvd == -1)
# Line 147  tcp_connect(char *server) Line 149  tcp_connect(char *server)
149    
150  /* Disconnect on the TCP layer */  /* Disconnect on the TCP layer */
151  void  void
152  tcp_disconnect()  tcp_disconnect(void)
153  {  {
154          close(sock);          close(sock);
155  }  }

Legend:
Removed from v.82  
changed lines
  Added in v.275

  ViewVC Help
Powered by ViewVC 1.1.26