apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r190580 - in /apr/apr/branches/1.0.x: CHANGES network_io/win32/sockopt.c
Date Tue, 14 Jun 2005 10:55:10 GMT
Author: trawick
Date: Tue Jun 14 03:55:07 2005
New Revision: 190580

URL: http://svn.apache.org/viewcvs?rev=190580&view=rev
Log:
Support APR_SO_SNDBUF and APR_SO_RCVBUF on Windows.

PR:  32177
Submitted by: Sim <sgobbi datamanagement.it>, Jeff Trawick

Modified:
    apr/apr/branches/1.0.x/CHANGES
    apr/apr/branches/1.0.x/network_io/win32/sockopt.c

Modified: apr/apr/branches/1.0.x/CHANGES
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.0.x/CHANGES?rev=190580&r1=190579&r2=190580&view=diff
==============================================================================
--- apr/apr/branches/1.0.x/CHANGES (original)
+++ apr/apr/branches/1.0.x/CHANGES Tue Jun 14 03:55:07 2005
@@ -1,5 +1,8 @@
 Changes for APR 1.0.2
 
+  *) Support APR_SO_SNDBUF and APR_SO_RCVBUF on Windows.  PR 32177.
+     [Sim <sgobbi datamanagement.it>, Jeff Trawick]
+
   *) Make install passed a shell expanded list of header files to the
      build/install.sh script, which can only install one file at a time.
      Changed to install one header file at a time. [Justin Erenkrantz,

Modified: apr/apr/branches/1.0.x/network_io/win32/sockopt.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.0.x/network_io/win32/sockopt.c?rev=190580&r1=190579&r2=190580&view=diff
==============================================================================
--- apr/apr/branches/1.0.x/network_io/win32/sockopt.c (original)
+++ apr/apr/branches/1.0.x/network_io/win32/sockopt.c Tue Jun 14 03:55:07 2005
@@ -112,6 +112,18 @@
             apr_set_option(sock, APR_SO_DEBUG, on);
         }
         break;
+    case APR_SO_SNDBUF:
+        if (setsockopt(sock->socketdes, SOL_SOCKET, SO_SNDBUF,
+                       (void *)&on, sizeof(int)) == -1) {
+            return apr_get_netos_error();
+        }
+        break;
+    case APR_SO_RCVBUF:
+        if (setsockopt(sock->socketdes, SOL_SOCKET, SO_RCVBUF,
+                       (void *)&on, sizeof(int)) == -1) {
+            return apr_get_netos_error();
+        }
+        break;
     case APR_SO_REUSEADDR:
         if (on != apr_is_option_set(sock, APR_SO_REUSEADDR)) {
             if (setsockopt(sock->socketdes, SOL_SOCKET, SO_REUSEADDR, 



Mime
View raw message