Skip to content

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Nov 9, 2024

Is to create socket for Internet Control Message Protocol context. Due to their nature, they are meant to be used via raw sockets rather than TCP/UDP.

Is to create socket for Internet Control Message Protocol context.
Due to their nature, they are meant to be used via
raw sockets rather than TCP/UDP.
@cmb69
Copy link
Member

cmb69 commented Nov 9, 2024

Makes sense to me. Maybe add a test to show the intended usage?

@devnexen devnexen marked this pull request as draft November 9, 2024 13:59
@devnexen devnexen marked this pull request as ready for review November 9, 2024 14:41
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you for the test! With a couple of changes, the test should pass on Windows, too.

PS: for reference: https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-socket

@devnexen devnexen requested a review from cmb69 November 12, 2024 18:13
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

I'm fine with adding this. Final decision is up to the code owner of ext/sockets, though. ;)

@devnexen
Copy link
Member Author

I think he agrees with me ;)

@devnexen devnexen closed this in 33ba1a4 Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants