tahamajs's picture
download
raw
581 Bytes
#ifndef NAMED_PIPE_HPP
#define NAMED_PIPE_HPP
#include <string>
class NamedPipe {
public:
NamedPipe(const std::string& pipe_name);
static void removePipe(const std::string& pipe_path);
protected:
std::string pipe_name_;
int pipe_fd_;
};
class NamedPipeClient : NamedPipe {
public:
NamedPipeClient(const std::string& pipe_name);
void send(const std::string& msg);
~NamedPipeClient();
};
class NamedPipeServer : NamedPipe {
public:
NamedPipeServer(const std::string& pipe_name);
std::string receive();
~NamedPipeServer();
};
#endif

Xet Storage Details

Size:
581 Bytes
·
Xet hash:
791f27c7ec2d868c66b168623d45d1d49f976019eca6be2bc2f6f19fa32d0c92

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.