commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r628580 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/SocketClient.java
Date Mon, 18 Feb 2008 00:04:33 GMT
Author: rwinston
Date: Sun Feb 17 16:04:31 2008
New Revision: 628580

URL: http://svn.apache.org/viewvc?rev=628580&view=rev
Log:
Add socket send/receive buffer size mutators

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/SocketClient.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/SocketClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/SocketClient.java?rev=628580&r1=628579&r2=628580&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/SocketClient.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/SocketClient.java
Sun Feb 17 16:04:31 2008
@@ -373,6 +373,28 @@
     {
         _socket_.setSoTimeout(timeout);
     }
+    
+    
+    /**
+     * Set the underlying socket send buffer size.
+     * <p>
+     * @param size The size of the buffer in bytes.
+     * @throws SocketException 
+     */
+    public void setSendBufferSize(int size) throws SocketException {
+    	_socket_.setSendBufferSize(size);
+    }
+    
+    
+    /**
+     * Sets the underlying socket receive buffer size.
+     * <p>
+     * @param size The size of the buffer in bytes.
+     * @throws SocketException 
+     */
+    public void setReceiveBufferSize(int size) throws SocketException  {
+    	_socket_.setReceiveBufferSize(size);
+    }
 
 
     /**



Mime
View raw message