com.streamhub.nio
Class SSLChannel

java.lang.Object
  extended by com.streamhub.nio.SSLChannel

public final class SSLChannel
extends Object


Constructor Summary
SSLChannel(com.streamhub.nio.SelectorThread st, SocketChannel sc, com.streamhub.nio.ChannelListener listener, SSLEngine engine)
           
 
Method Summary
 void close()
           
 SocketChannel getSocketChannel()
           
 void handleRead()
           
 void handleWrite()
           
 int read(ByteBuffer dst)
           
 void registerForRead()
           
 void registerForWrite()
           
 void unregisterForRead()
           
 void unregisterForWrite()
           
 int write(ByteBuffer src)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLChannel

public SSLChannel(com.streamhub.nio.SelectorThread st,
                  SocketChannel sc,
                  com.streamhub.nio.ChannelListener listener,
                  SSLEngine engine)
           throws Exception
Throws:
Exception
Method Detail

read

public int read(ByteBuffer dst)
         throws IOException
Throws:
IOException

write

public int write(ByteBuffer src)
          throws IOException
Throws:
IOException

registerForRead

public void registerForRead()
                     throws IOException
Throws:
IOException

unregisterForRead

public void unregisterForRead()
                       throws IOException
Throws:
IOException

registerForWrite

public void registerForWrite()
                      throws IOException
Throws:
IOException

unregisterForWrite

public void unregisterForWrite()
                        throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

handleRead

public void handleRead()

handleWrite

public void handleWrite()

getSocketChannel

public SocketChannel getSocketChannel()


Copyright © 2009 StreamHub. Tutorials, news and guides can be found on the StreamHub Comet Blog.