예제 #1
0
 @Override
 public void setConnection(Connection connection) {
   if (connection instanceof AbstractConnection) {
     AbstractConnection a = (AbstractConnection) connection;
     if (a.getInputBufferSize() < _sslEngine.getSession().getApplicationBufferSize())
       a.setInputBufferSize(_sslEngine.getSession().getApplicationBufferSize());
   }
   super.setConnection(connection);
 }
 @Override
 public void onOpen() {
   super.onOpen();
   try {
     getEndPoint().flush(BufferUtil.EMPTY_BUFFER);
     if (completed) replaceConnection();
     else fillInterested();
   } catch (IOException e) {
     throw new RuntimeIOException(e);
   }
 }
예제 #3
0
 @Override
 public void onOpen() {
   try {
     // Begin the handshake
     _sslEngine.beginHandshake();
     super.onOpen();
     getDecryptedEndPoint().getConnection().onOpen();
   } catch (SSLException x) {
     getEndPoint().close();
     throw new RuntimeIOException(x);
   }
 }
예제 #4
0
 @Override
 public void onClose() {
   _decryptedEndPoint.getConnection().onClose();
   super.onClose();
 }
예제 #5
0
 @Override
 public void onOpen() {
   super.onOpen();
   fillInterested();
 }
 @Override
 public void onOpen() {
   super.onOpen();
   // TODO: handle timeout
   getExecutor().execute(new SendUpgradeRequest());
 }
 @Override
 public void onClose() {
   softClose();
   super.onClose();
 }
 @Override
 public void onOpen() {
   super.onOpen();
   fillInterested();
   promise.succeeded(this);
 }
예제 #9
0
 @Override
 public void onOpen() {
   super.onOpen();
   writeSocks4Connect();
 }