SSL and SocketChannel

后端 未结 4 1432
猫巷女王i
猫巷女王i 2021-02-02 00:54

Ideally, I only need a simple SSLSocketChannel.

I already have a component that reads and writes message over ordinary SocketChannel, but for

4条回答
  •  無奈伤痛
    2021-02-02 01:00

    Check out Restlet's implementation it may do what you need, and it's all about NIO.

    Restlet Engine Javadoc

    Specifically the HttpClientCall. SetProtocol(HTTPS) - getResponseEntityChannel returns a ReadableByteChannel (getEntityChannel returns a WriteableByteChannel)

提交回复
热议问题