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

UNIX domain socket support #1346

Merged
merged 4 commits into from
Aug 1, 2022
Merged

UNIX domain socket support #1346

merged 4 commits into from
Aug 1, 2022

Conversation

gh4ck3r
Copy link
Contributor

@gh4ck3r gh4ck3r commented Aug 1, 2022

Recently, I saw #721, and aware @yhirose doesn't have any plan about it. But, @AhnLab-OSSG uses cpp-httplib on UNIX domain socket so far. So, I'd like to share the functionality to support UNIX domain socket. Hope this useful for somebody like me.

* `set_address_family(AF_UNIX)` is required
Abstract address of AF_UNIX begins with null(0x00) which can't be
delivered via .c_str() method.
@yhirose yhirose merged commit 362d064 into yhirose:master Aug 1, 2022
@yhirose
Copy link
Owner

yhirose commented Aug 1, 2022

@gh4ck3r, looks very good. Thanks for the fine contribution!

@gh4ck3r gh4ck3r deleted the uds-support branch August 2, 2022 00:15
ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this pull request May 2, 2023
* Add support UNIX domain socket

* `set_address_family(AF_UNIX)` is required

* add unittest for UNIX domain socket

* add support UNIX domain socket with abstract address

Abstract address of AF_UNIX begins with null(0x00) which can't be
delivered via .c_str() method.

* add unittest for UNIX domain socket with abstract address

Co-authored-by: Changbin Park <changbin.park@ahnlab.com>
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.

3 participants