Skip to content

Get IP address from connection/client #1340

@Rockybilly

Description

@Rockybilly

I want to access which ip I am connected to, using the Client interface. I am not doing a hostname check myself, because dns results may change after a connection is established, but I want to know the socket I am sending requests to.

You can expose the socket underneath through a get_ function (just like how std::thread provides p_thread handler in linux), then people can use it for all purposes.

Or for this specific issue, a function could be written. But I would suggest making the socket available if needed. There all sorts of system-based functions people may want to call on a socket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions