Skip to content

Rsocket object supports obtaining local address and remote address #1011

Closed
@atshow

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

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
atshow

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;
  }
......
}
atshow

atshow commented on May 31, 2021

@atshow
Author

I submitted a PR
#1013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    supersededIssue is superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @rstoyanchev@atshow

      Issue actions

        Rsocket object supports obtaining local address and remote address · Issue #1011 · rsocket/rsocket-java