/[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 728 by stargo, Sun Jun 27 19:17:24 2004 UTC revision 872 by stargo, Thu Mar 31 10:49:59 2005 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-2002     Copyright (C) Matthew Chapman 1999-2005
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 232  tcp_get_address() Line 232  tcp_get_address()
232  {  {
233          static char ipaddr[32];          static char ipaddr[32];
234          struct sockaddr_in sockaddr;          struct sockaddr_in sockaddr;
235          size_t len = sizeof(sockaddr);          socklen_t len = sizeof(sockaddr);
236          if (getsockname(sock, (struct sockaddr *) &sockaddr, &len) == 0)          if (getsockname(sock, (struct sockaddr *) &sockaddr, &len) == 0)
237          {          {
238                  unsigned char *ip = (unsigned char *) &sockaddr.sin_addr;                  unsigned char *ip = (unsigned char *) &sockaddr.sin_addr;

Legend:
Removed from v.728  
changed lines
  Added in v.872

  ViewVC Help
Powered by ViewVC 1.1.26