我现在在我的spring项目中收到一个rsocket连接,然后我想获取它的远程地址和端口,我应该怎么获取呢?类似于使用socket.getRemoteSocketAddress()获取socket的远程地址。
@ConnectMapping
public void connectMapping(RSocketRequester requester) {
// there is a resockt connect, how can i get the remote host from it
RSocket rSocket = requester.rsocket();
// TODO
logger.info("host port");
}