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

Path-aware subclasses InetSocketAddress #86

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

tzaeschke
Copy link
Collaborator

DatagramChannel.receive() should return a subclass of InetSocketAddress that contains ReturnPath information.

To do this we introduce a new ScionReturnAddress class that extends InetSocketAddress.

This allows paths to be returned by DatagramChannel.receive(). At the same time, a normal Path does not expose any InetSocketAddress methods to avoid confusion. In particular, as far as the user is concerned an InetSocketAddress is never a SCION address (it does not have ISD/AS), and a SCION resolved address is always a Path.

@tzaeschke tzaeschke self-assigned this Jun 10, 2024
@tzaeschke tzaeschke merged commit 31502f6 into master Jun 10, 2024
9 checks passed
@tzaeschke tzaeschke deleted the fix/69-PathSocketAddress-minimal branch June 10, 2024 15:16
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

Successfully merging this pull request may close these issues.

1 participant