/[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 376 by jsorg71, Mon May 19 21:36:33 2003 UTC revision 408 by forsberg, Fri Jun 6 10:44:20 2003 UTC
# Line 43  tcp_init(uint32 maxlen) Line 43  tcp_init(uint32 maxlen)
43  {  {
44          if (maxlen > out.size)          if (maxlen > out.size)
45          {          {
46                  out.data = (uint8*)xrealloc(out.data, maxlen);                  out.data = (uint8 *) xrealloc(out.data, maxlen);
47                  out.size = maxlen;                  out.size = maxlen;
48          }          }
49    
# Line 80  tcp_recv(uint32 length) Line 80  tcp_recv(uint32 length)
80    
81          if (length > in.size)          if (length > in.size)
82          {          {
83                  in.data = (uint8*)xrealloc(in.data, length);                  in.data = (uint8 *) xrealloc(in.data, length);
84                  in.size = length;                  in.size = length;
85          }          }
86    
# Line 143  tcp_connect(char *server) Line 143  tcp_connect(char *server)
143          setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *) &true_value, sizeof(true_value));          setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *) &true_value, sizeof(true_value));
144    
145          in.size = 4096;          in.size = 4096;
146          in.data = (uint8*)xmalloc(in.size);          in.data = (uint8 *) xmalloc(in.size);
147    
148          out.size = 4096;          out.size = 4096;
149          out.data = (uint8*)xmalloc(out.size);          out.data = (uint8 *) xmalloc(out.size);
150    
151          return True;          return True;
152  }  }

Legend:
Removed from v.376  
changed lines
  Added in v.408

  ViewVC Help
Powered by ViewVC 1.1.26