Skip to content

Dpl 706 swish with uds#1

Open
kubamaruszczykxyz wants to merge 3 commits intomasterfrom
DPL-706-swish-with-UDS
Open

Dpl 706 swish with uds#1
kubamaruszczykxyz wants to merge 3 commits intomasterfrom
DPL-706-swish-with-UDS

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


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

#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