apr-commits mailing list archives

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

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

Modified: apr/apr/branches/0.9.x/CHANGES
URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/CHANGES?rev=190577&r1=190576&r2=190577&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/CHANGES (original)
+++ apr/apr/branches/0.9.x/CHANGES Tue Jun 14 03:48:39 2005
@@ -1,5 +1,8 @@
 Changes with APR 0.9.7
 
+  *) Support APR_SO_SNDBUF and APR_SO_RCVBUF on Windows.  PR 32177.
+     [Sim <sgobbi datamanagement.it>, Jeff Trawick]
+
   *) Fix detection of rwlocks on Mac OS X. [Aaron Bannert]
 
   *) Fix issue with poll() followed by net I/O yielding EAGAIN on

Modified: apr/apr/branches/0.9.x/network_io/win32/sockopt.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/network_io/win32/sockopt.c?rev=190577&r1=190576&r2=190577&view=diff
==============================================================================
--- apr/apr/branches/0.9.x/network_io/win32/sockopt.c (original)
+++ apr/apr/branches/0.9.x/network_io/win32/sockopt.c Tue Jun 14 03:48:39 2005
@@ -118,6 +118,18 @@
             apr_set_option(&sock->netmask, 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->netmask, APR_SO_REUSEADDR)) {
             if (setsockopt(sock->socketdes, SOL_SOCKET, SO_REUSEADDR, 



Mime
View raw message