Skip to content
Advertisement

Tag: quic

netty-incubator-codec-quic: How to get remoteAddress?

I need to know the remote address at the server side. I tried bellow ways and failed: QuicStreamChannel.remoteAddress() returns QuicStreamAddress, which cannot be casted to InetSocketAddress. QuicStreamAddress or QuicConnectionAddress does not contain remote IP address or port at all. class io.netty.buffer.PooledUnsafeDirectByteBuf cannot be cast to class io.netty.channel.socket.DatagramPacket so I cannot use DatagramPacket.sender() to get the sender address. (QuicChannel) (ctx.channel().parent())).sslEngine().getPeerHost() —

Advertisement