tahamajs/OS / Files /past_terms /Operating-System-Course-Projects /2.Map-Reduce-Genre-Counter /src /named_pipe.hpp
| 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(); | |
| }; | |
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.