You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2005/06/10 12:55:32 UTC
cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni SSLSocket.java
mturk 2005/06/10 03:55:32
Added: jni/java/org/apache/tomcat/jni SSLSocket.java
Log:
SSLSocket wrapper initial code.
Revision Changes Path
1.1 jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/SSLSocket.java
Index: SSLSocket.java
===================================================================
/*
* Copyright 1999-2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tomcat.jni;
/* Import needed classes */
import java.nio.ByteBuffer;
/** SSL Socket
*
* @author Mladen Turk
* @version $Revision: 1.1 $, $Date: 2005/06/10 10:55:32 $
*/
public class SSLSocket {
/**
* Create a socket.
* @param ctx SSLContext to use.
* @param pool The pool to use
* @return The new socket that has been set up.
*/
public static native long create(long ctx, long pool)
throws Exception;
/**
* Shutdown a socket.
* <br />
* This does not actually close the socket descriptor, it just
* controls which calls are still valid on the socket.
* @param thesocket The socket to close
* @param how How to shutdown the socket. One of:
* <PRE>
* SSL_SHUTDOWN_TYPE_UNSET
* SSL_SHUTDOWN_TYPE_STANDARD
* SSL_SHUTDOWN_TYPE_UNCLEAN
* SSL_SHUTDOWN_TYPE_ACCURATE
* </PRE>
* If SSL_SHUTDOWN_TYPE_UNSET is used the default context shutdown
* type is used.
*/
public static native int shutdown(long thesocket, int how);
/**
* Close a socket.
* @param thesocket The socket to close
*/
public static native int close(long thesocket);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org