public class SslSocketChannel extends AsynchronousSocketChannel
| Constructor and Description |
|---|
SslSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel,
SslService sslService,
org.aoju.bus.core.io.PageBuffer pageBuffer) |
public SslSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel, SslService sslService, org.aoju.bus.core.io.PageBuffer pageBuffer)
public AsynchronousSocketChannel bind(SocketAddress local) throws IOException
bind in interface NetworkChannelbind in class AsynchronousSocketChannelIOExceptionpublic <T> AsynchronousSocketChannel setOption(SocketOption<T> name, T value) throws IOException
setOption in interface NetworkChannelsetOption in class AsynchronousSocketChannelIOExceptionpublic <T> T getOption(SocketOption<T> name) throws IOException
IOExceptionpublic Set<SocketOption<?>> supportedOptions()
public AsynchronousSocketChannel shutdownInput() throws IOException
shutdownInput in class AsynchronousSocketChannelIOExceptionpublic AsynchronousSocketChannel shutdownOutput() throws IOException
shutdownOutput in class AsynchronousSocketChannelIOExceptionpublic SocketAddress getRemoteAddress() throws IOException
getRemoteAddress in class AsynchronousSocketChannelIOExceptionpublic <A> void connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
connect in class AsynchronousSocketChannelpublic Future<Void> connect(SocketAddress remote)
connect in class AsynchronousSocketChannelpublic <A> void read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
read in class AsynchronousSocketChannelpublic Future<Integer> read(ByteBuffer dst)
read in interface AsynchronousByteChannelread in class AsynchronousSocketChannelpublic <A> void read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)
read in class AsynchronousSocketChannelpublic <A> void write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
write in class AsynchronousSocketChannelpublic Future<Integer> write(ByteBuffer src)
write in interface AsynchronousByteChannelwrite in class AsynchronousSocketChannelpublic <A> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)
write in class AsynchronousSocketChannelpublic SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface NetworkChannelgetLocalAddress in class AsynchronousSocketChannelIOExceptionpublic boolean isOpen()
public void close()
throws IOException
IOExceptionCopyright © 2021. All rights reserved.