Adding SSL code to RemoteServer

This commit is contained in:
Viktor Klang 2010-04-25 20:40:47 +02:00
parent f252aef9c8
commit 53f11d0d2c

View file

@ -367,7 +367,14 @@ class RemoteServerHandler(
val sslHandler : SslHandler = ctx.getPipeline.get(classOf[SslHandler])
// Begin handshake.
sslHandler.handshake()
sslHandler.handshake().addListener( new ChannelFutureListener {
def operationComplete(future : ChannelFuture) : Unit = {
if(future.isSuccess)
openChannels.add(future.getChannel)
else
future.getChannel.close
}
})
}