![]() |
Tacopie
3.0.0
Tacopie is a TCP Client & Server C++11 library.
|
#include <self_pipe.hpp>
Public Member Functions | |
self_pipe (void) | |
ctor | |
~self_pipe (void) | |
dtor | |
self_pipe (const self_pipe &)=delete | |
copy ctor | |
self_pipe & | operator= (const self_pipe &)=delete |
assignment operator | |
fd_t | get_read_fd (void) const |
fd_t | get_write_fd (void) const |
void | notify (void) |
void | clr_buffer (void) |
used to force poll to wake up simply make poll watch for read events on one side of the pipe and write to the other side
void tacopie::self_pipe::clr_buffer | ( | void | ) |
clear the pipe (basically read from the pipe)
fd_t tacopie::self_pipe::get_read_fd | ( | void | ) | const |
fd_t tacopie::self_pipe::get_write_fd | ( | void | ) | const |
void tacopie::self_pipe::notify | ( | void | ) |
notify the self pipe (basically write to the pipe)