Skip to content

Rsocket object supports obtaining local address and remote address #1011

Closed

Description

@atshow

I'm using spring boot rsocket to develop microservices. Now I have a requirement to get the local address and remote address of the connection. I find that I can't get the local address and remote address from the rsocket object. Can we learn io.netty.channel.channel to add localAddress and remoteAddress methods to the rsocket object

Activity

  1. changed the title [-]Whether rsocket object supports obtaining local address and remote address[/-] [+]Rsocket object supports obtaining local address and remote address[/+] on May 26, 2021
  2. atshow commented on May 26, 2021

    @atshow
    Author

    I have an idea to add two interfaces to the rsocket object, as shown below

    public interface RSocket extends Availability, Closeable {
    ......
      default SocketAddress localAddress() {
        return null;
      }
    
      default SocketAddress remoteAddress() {
        return null;
      }
    ......
    }
    
  3. atshow commented on May 31, 2021

    @atshow
    Author

    I submitted a PR
    #1013

  4. added
    superseded
    on Jun 1, 2021