tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni Socket.java
Date Thu, 14 Apr 2005 16:41:08 GMT
mturk       2005/04/14 09:41:08

  Modified:    jni/java/org/apache/tomcat/jni Socket.java
  Log:
  Remove exceptions from recv and send. Returned error codes are
  negative values.
  
  Revision  Changes    Path
  1.5       +8 -16     jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Socket.java
  
  Index: Socket.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Socket.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Socket.java	13 Apr 2005 13:17:27 -0000	1.4
  +++ Socket.java	14 Apr 2005 16:41:08 -0000	1.5
  @@ -186,8 +186,7 @@
        * @return The number of bytes send.
        * 
        */
  -    public static native int send(long sock, byte[] buf, int offset, int len)
  -        throws Error;
  +    public static native int send(long sock, byte[] buf, int offset, int len);
   
       /**
        * Send data over a network.
  @@ -211,8 +210,7 @@
        * 
        */
       public static native int sendb(long sock, ByteBuffer buf,
  -                                   int offset, int len)
  -        throws Error;
  +                                   int offset, int len);
   
       /**
        * Send multiple packets of data over a network.
  @@ -230,8 +228,7 @@
        * @param vec The array from which to get the data to send.
        * 
        */
  -    public static native int sendv(long sock, byte[][] vec)
  -        throws Error;
  +    public static native int sendv(long sock, byte[][] vec);
   
       /**
        * @param sock The socket to send from
  @@ -242,8 +239,7 @@
        * @param len  The length of the data to send
        */
       public static native int sendto(long sock, long where, int flags,
  -                                    byte[] buf, int offset, int len)
  -        throws Error;
  +                                    byte[] buf, int offset, int len);
   
       /**
        * Read data from a network.
  @@ -265,8 +261,7 @@
        * @param nbytes The number of bytes to read (-1) for full array.
        * @return the number of bytes received.
        */
  -    public static native int recv(long sock, byte[] buf, int offset, int nbytes)
  -        throws Error;
  +    public static native int recv(long sock, byte[] buf, int offset, int nbytes);
   
       /**
        * Read data from a network.
  @@ -289,8 +284,7 @@
        * @return the number of bytes received.
        */
       public static native int recvb(long sock, ByteBuffer buf,
  -                                   int offset, int nbytes)
  -        throws Error;
  +                                   int offset, int nbytes);
   
   
       /**
  @@ -303,9 +297,7 @@
        * @return the number of bytes received.
        */
       public static native int recvFrom(long from, long sock, int flags,
  -                                      byte[] buf, int offset, int nbytes)
  -        throws Error;
  -
  +                                      byte[] buf, int offset, int nbytes);
   
       /**
        * Setup socket options for the specified socket
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message