Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address properties #5

Closed
gdamore opened this issue Jan 16, 2017 · 2 comments
Closed

Address properties #5

gdamore opened this issue Jan 16, 2017 · 2 comments

Comments

@gdamore
Copy link
Contributor

gdamore commented Jan 16, 2017

Implement property support to get / set addresses (remote and local).

@gdamore
Copy link
Contributor Author

gdamore commented Aug 9, 2017

See also #40 -- please keep this in mind -- we think these address properties should be via nng_sockaddr. Note that this means that the compatibility layer will need to convert these to and from string representation.

@gdamore
Copy link
Contributor Author

gdamore commented Oct 3, 2017

So we have a few things.

a) URLs are strings. We have to support these for configuration, and we also support obtaining the URL from a pipe as a string. The URL does not give details about the peer, but merely the service address used.

b) Pipes have a readonly nng_sockaddr pair -- one local and one remote, that can be obtained as options. This provides details about the actual TCP, inproc, IPC, or ZT connection. This may differ from the URL -- for example locally selected ephemeral ports are reported, etc.

Right now only TCP support for this is missing, but that's about to be rectified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant