Skip to content

Get socket parameters in Client or Server #1402

@njaard

Description

@njaard

When a Client makes a request, it may connect to one of many hosts associated with the URL.

I would like to have a way to access the IP address associated with the remote host. This is accessible from tokio via NetSocket::peer_addr().

Logically, one should also be able to access the local address with local_addr(), and so it makes sense to support access to many of the apis made available on the socket-level from tokio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-clientArea: client.A-serverArea: server.B-rfcBlocked: More comments would be useful in determine next steps.C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions