apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r190576 - in /apr/apr/trunk: CHANGES network_io/win32/sockopt.c
Date Tue, 14 Jun 2005 10:45:27 GMT
Author: trawick
Date: Tue Jun 14 03:45:25 2005
New Revision: 190576

URL: http://svn.apache.org/viewcvs?rev=190576&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/trunk/CHANGES
    apr/apr/trunk/network_io/win32/sockopt.c

Modified: apr/apr/trunk/CHANGES
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/CHANGES?rev=190576&r1=190575&r2=190576&view=diff
==============================================================================
--- apr/apr/trunk/CHANGES (original)
+++ apr/apr/trunk/CHANGES Tue Jun 14 03:45:25 2005
@@ -1,5 +1,8 @@
 Changes for APR 1.2.0
 
+   *) Support APR_SO_SNDBUF and APR_SO_RCVBUF on Windows.  PR 32177.
+      [Sim <sgobbi datamanagement.it>, Jeff Trawick]
+
    *) Fix apr_table_overlap()'s handling of tables allocated from
       different pools.  [Joe Schaefer <joe+gmane@sunstarsys.com>]
 

Modified: apr/apr/trunk/network_io/win32/sockopt.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/win32/sockopt.c?rev=190576&r1=190575&r2=190576&view=diff
==============================================================================
--- apr/apr/trunk/network_io/win32/sockopt.c (original)
+++ apr/apr/trunk/network_io/win32/sockopt.c Tue Jun 14 03:45:25 2005
@@ -113,6 +113,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