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

Socket improvements #202

Merged
merged 8 commits into from
May 21, 2024
Merged

Socket improvements #202

merged 8 commits into from
May 21, 2024

Conversation

jow-
Copy link
Owner

@jow- jow- commented May 17, 2024

  • remove wrong documentation fragment
  • uv_to_sockaddr(): fix length calculation for AF_UNIX addresses
  • support IPv6 addresses in struct conversion routines
  • improve uc_socket_connect() behavior
  • improve uc_socket_listen() behavior
  • handle further socket option value types
  • add IPv6 socket options
  • implement recvmsg(), sendmsg() and cmsg support

jow- added 7 commits May 17, 2024 15:31
Remove an accidentially copy-pasted jsdoc comment block.

Signed-off-by: Jo-Philipp Wich <[email protected]>
Do not attempt to calculate a dynamic length for AF_UNIX socket addresses
but return the total size of `struct sockaddr_un`, like we do it for the
structures of other address families as well.

Fixes incorrect domain socket path truncation.

Signed-off-by: Jo-Philipp Wich <[email protected]>
Treat address strings containing slashes as AF_UNIX paths and do not
attempt to resolve them.

Signed-off-by: Jo-Philipp Wich <[email protected]>
  - Treat address string values containing slashes as AF_UNIX addresses
  - Default to SOCK_DGRAM for non AF_INET, AF_INET6 sockets
  - Gracefully handle EOPNOTSUPP condition after listen() call

Signed-off-by: Jo-Philipp Wich <[email protected]>
 - Handle varying integer sizes for socket option values
 - Support interfaces name and index option values

Signed-off-by: Jo-Philipp Wich <[email protected]>
Signed-off-by: Jo-Philipp Wich <[email protected]>
@jow- jow- force-pushed the socket-improvements branch 6 times, most recently from a4dad7d to c6b64a5 Compare May 21, 2024 08:13
Implement socket.recvmsg(), socket.sendmsg() and support for encoding
and decoding well known control message types.

Signed-off-by: Jo-Philipp Wich <[email protected]>
@jow- jow- merged commit 2a0240f into master May 21, 2024
7 checks passed
@jow- jow- deleted the socket-improvements branch May 21, 2024 08:40
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