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

Dpl 706 swish with uds #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

kubamaruszczykxyz
Copy link
Collaborator

@kubamaruszczykxyz kubamaruszczykxyz commented Nov 3, 2024

Support for Unix domain sockets (client)

@kubamaruszczykxyz kubamaruszczykxyz self-assigned this Nov 3, 2024
Copy link
Collaborator

@Seyedof Seyedof left a comment

Choose a reason for hiding this comment

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

Thanks Kuba, few request changes

@@ -0,0 +1,15 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove this file if it's something auto-generated

@@ -66,6 +66,10 @@ class Client {
Configuration configuration{};

Client() : curl_handle_(curl_easy_init()) { assert(curl_handle_ != nullptr); }
// Set Unix domain socket path
void SetUnixSocketPath(const std::string& socket_path) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Better call it SetUnixDomainSocketPath

@@ -30,20 +30,25 @@
#include <string>
#include <vector>

#include <cstddef> // for std::byte
#include <memory> // for std::allocator
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comments are redundant please remove

template <typename ByteType = std::byte,
typename ByteTraits = std::char_traits<char>, // Default ByteTraits for char is used
typename Allocator = std::allocator<ByteType>>
class BasicResponseBuffer {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit style change, class and template better be at same indent level, (class is not inside template, no need to indent they are at same level)

using string_type = std::basic_string<byte_type, byte_traits, allocator_type>;
typename ByteTraits = std::char_traits<ByteType>,
typename Allocator = std::allocator<ByteType>>
class BasicRequestHeader {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as previous comment

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