Skip to content

discussion: Endpoint API addr and bound_sockets #3925

@ramfox

Description

@ramfox

#3905 and #3924 cover the cases where what to return from the endpoint after it has been closed is more obvious.

These last two methods:

  • addr
  • bound_sockets

Are a bit more subjective.

Should we be returning the last known values for these fields, so that users can gather information about the endpoint after it was closed, the way they can with connections using the endpoint hook API + the ConnectionInfo?

Should we return empty values for these fields, since we no longer have bound sockets or addresses that can be used to dial the endpoint?

Should we have separate methods that return "last known cached values" for these methods?

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIc-irohFunctionality of the core iroh crate.decisionArchitectural choice that needs to be made

    Type

    Projects

    Status

    👍 Ready

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions