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

Add documentation for using Unix domain sockets. #1954

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

andrewmcdan
Copy link
Contributor

It took me a bit of digging to figure out how to use Unix Sockets, so I added a bit to the Readme about it.

@yhirose
Copy link
Owner

yhirose commented Oct 2, 2024

@andrewmcdan thanks for the pull request.

Could you please move the section after "Use poll instead of select" section?
Also could you make the code example simpler with only necessary information as below?

// Server
httplib::Server svr("./my-socket.sock");

// Client
httplib::Client cli("./my-socket.sock");
cli.set_address_family(AF_UNIX);

Thanks.

@andrewmcdan
Copy link
Contributor Author

Done.

@yhirose yhirose merged commit 131bc6c into yhirose:master Oct 3, 2024
@yhirose
Copy link
Owner

yhirose commented Oct 3, 2024

@andrewmcdan thanks for your contribution!

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