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

Arpa INET Header and Redundant File Removal #25

Merged
merged 11 commits into from
Jan 31, 2025
Merged

Conversation

dailker
Copy link
Contributor

@dailker dailker commented Jan 18, 2025

Arpa/INET has been added for socket functions.
includes/.gitignore file removed. (Redundant)

["Ilker":{...}] and others added 8 commits January 18, 2025 07:49
Refactored network byte-order conversion functions (htonl.c, htons.c, ntohl.c, ntohs.c) to use dynamic loading (dlopen/dlsym) for Windows compatibility while maintaining POSIX interfaces.
Updated inet_addr.c, inet_ntoa.c, inet_ntop.c, and inet_pton.c to follow the same approach, ensuring POSIX compliance while integrating Windows function signatures via dynamic loading.
Modified function pointer declarations and signatures to align with Windows API documentation.
Created ws_types.h for function pointer type definitions, ensuring Windows API compatibility and keeping the POSIX interface.
Refined the wsaapi.h header to define appropriate calling conventions and helper types, and removed the Windows-specific header, switching to ws_types.h for function pointer compatibility.

Co-Authored-By: CoderRC <[email protected]>
@dailker
Copy link
Contributor Author

dailker commented Jan 31, 2025

image

@CoderRC
Copy link
Owner

CoderRC commented Jan 31, 2025

I checked all the changes, and the functions work correctly as intended.

@CoderRC CoderRC merged commit 9b79c49 into CoderRC:main Jan 31, 2025
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