apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: apr/network_io/win32 sockets.c
Date Fri, 22 Feb 2002 15:55:23 GMT
ake         02/02/22 07:55:23

  Modified:    network_io/os2 sockets.c
               network_io/unix sockets.c
               network_io/win32 sockets.c
  Log:
  Set the port values in apr_os_sock_make
  
  Revision  Changes    Path
  1.49      +2 -0      apr/network_io/os2/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/os2/sockets.c,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- sockets.c	7 Dec 2001 23:29:06 -0000	1.48
  +++ sockets.c	22 Feb 2002 15:55:23 -0000	1.49
  @@ -278,6 +278,7 @@
           memcpy(&(*apr_sock)->local_addr->sa.sin, 
                  os_sock_info->local, 
                  (*apr_sock)->local_addr->salen);
  +        (*apr_sock)->local_addr->port = ntohs((*apr_sock)->local_addr->sa.sin.sin_port);
       }
       else {
           (*apr_sock)->local_port_unknown = (*apr_sock)->local_interface_unknown =
1;
  @@ -286,6 +287,7 @@
           memcpy(&(*apr_sock)->remote_addr->sa.sin, 
                  os_sock_info->remote,
                  (*apr_sock)->remote_addr->salen);
  +        (*apr_sock)->remote_addr->port = ntohs((*apr_sock)->remote_addr->sa.sin.sin_port);
       }
           
       apr_pool_cleanup_register((*apr_sock)->cntxt, (void *)(*apr_sock), 
  
  
  
  1.92      +2 -0      apr/network_io/unix/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sockets.c,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- sockets.c	4 Jan 2002 17:36:51 -0000	1.91
  +++ sockets.c	22 Feb 2002 15:55:23 -0000	1.92
  @@ -358,6 +358,7 @@
           memcpy(&(*apr_sock)->local_addr->sa.sin, 
                  os_sock_info->local, 
                  (*apr_sock)->local_addr->salen);
  +        (*apr_sock)->local_addr->port = ntohs((*apr_sock)->local_addr->sa.sin.sin_port);
       }
       else {
           (*apr_sock)->local_port_unknown = (*apr_sock)->local_interface_unknown =
1;
  @@ -369,6 +370,7 @@
           memcpy(&(*apr_sock)->remote_addr->sa.sin, 
                  os_sock_info->remote,
                  (*apr_sock)->remote_addr->salen);
  +        (*apr_sock)->remote_addr->port = ntohs((*apr_sock)->remote_addr->sa.sin.sin_port);
       }
           
       (*apr_sock)->inherit = 0;
  
  
  
  1.71      +2 -0      apr/network_io/win32/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/win32/sockets.c,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- sockets.c	4 Jan 2002 21:28:56 -0000	1.70
  +++ sockets.c	22 Feb 2002 15:55:23 -0000	1.71
  @@ -390,6 +390,7 @@
                  os_sock_info->local, 
                  (*apr_sock)->local_addr->salen);
           (*apr_sock)->local_addr->pool = cont;
  +        (*apr_sock)->local_addr->port = ntohs((*apr_sock)->local_addr->sa.sin.sin_port);
       }
       else {
           (*apr_sock)->local_port_unknown = (*apr_sock)->local_interface_unknown =
1;
  @@ -399,6 +400,7 @@
                  os_sock_info->remote,
                  (*apr_sock)->remote_addr->salen);
           (*apr_sock)->remote_addr->pool = cont;
  +        (*apr_sock)->remote_addr->port = ntohs((*apr_sock)->remote_addr->sa.sin.sin_port);
       }
           
       apr_pool_cleanup_register((*apr_sock)->cntxt, (void *)(*apr_sock), 
  
  
  

Mime
View raw message