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

Support getpeername and getsockname syscalls #41

Merged
merged 2 commits into from
Sep 16, 2021

Conversation

ShuochengWang
Copy link
Contributor

No description provided.

@ShuochengWang
Copy link
Contributor Author

getsockname for different states:

  • Init
    • bind: addr is Some, return it
    • not bind: addr is None, get addr from host but don't store this addr (This addr will be invalid in later state, we should not store it)
  • Connect: get addr from host but don't store this addr
  • Connected: return addr if it's Some, else get addr from host and store this addr
  • Listen: return addr if it's Some, else get addr from host and store this addr

@ShuochengWang ShuochengWang force-pushed the dev-getname branch 2 times, most recently from 1b847aa to edcfa6f Compare September 9, 2021 11:12
Copy link
Contributor

@tatetian tatetian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contribution!

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.

2 participants