Skip to content

Port Socket::Addrinfo to win32#10650

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:feature/win32-addrinfo
May 18, 2021
Merged

Port Socket::Addrinfo to win32#10650
straight-shoota merged 1 commit intocrystal-lang:masterfrom
straight-shoota:feature/win32-addrinfo

Conversation

@straight-shoota
Copy link
Copy Markdown
Member

Adds bindings for addrinfo in the win32 API and integrates them with Socket::Addrinfo.

The implementation just required a small adoption for error handling and API initialization. Except for that, the existing implementation works as well with WSA as the unix APIs.

Based on #10610 (first two commits) and implements another fraction of #9544.

@straight-shoota straight-shoota added kind:feature platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:networking labels Apr 21, 2021
@straight-shoota straight-shoota marked this pull request as draft April 21, 2021 22:16
Copy link
Copy Markdown
Member

@asterite asterite left a comment

Choose a reason for hiding this comment

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

This is great!

Copy link
Copy Markdown
Member

@asterite asterite left a comment

Choose a reason for hiding this comment

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

This is great!

@asterite
Copy link
Copy Markdown
Member

I got confused because I thought this PR was the same as #10610

@straight-shoota straight-shoota marked this pull request as ready for review April 24, 2021 17:31
Copy link
Copy Markdown
Member

@beta-ziliani beta-ziliani left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@straight-shoota straight-shoota added this to the 1.1.0 milestone May 12, 2021
@straight-shoota straight-shoota merged commit 9cb47a7 into crystal-lang:master May 18, 2021
@straight-shoota straight-shoota deleted the feature/win32-addrinfo branch May 18, 2021 22:05
@straight-shoota straight-shoota restored the feature/win32-addrinfo branch May 18, 2021 22:05
@straight-shoota straight-shoota deleted the feature/win32-addrinfo branch May 18, 2021 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:feature platform:windows Windows support based on the MSVC toolchain / Win32 API pr:needs-review topic:stdlib:networking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants