Skip to content

Conversation

suryaprakash0010
Copy link

This PR implements the missing getsockname() function.

Changes:

  • Added getsockname() to LibOS interface
  • Implemented support in SharedNetworkQueue to retrieve local socket address
  • Updated demi_getsockname() C binding with validation, buffer checks, and error handling
  • Ensured consistency with existing getpeername() implementation

Key Points:

  • Memory safety ensured with proper pointer and buffer handling
  • Error handling follows Demikernel conventions (EINVAL, ENOTCONN, ENOTSUP)
  • Supports IPv4 (consistent with current design)
  • Includes debug tracing for troubleshooting

Fixes #72

@suryaprakash0010
Copy link
Author

@microsoft-github-policy-service agree

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.

[pdpix] Provide an Implementation for getsockname()
1 participant