Tacopie  3.0.0
Tacopie is a TCP Client & Server C++11 library.
Public Member Functions | List of all members
tacopie::self_pipe Class Reference

#include <self_pipe.hpp>

Public Member Functions

 self_pipe (void)
 ctor
 
 ~self_pipe (void)
 dtor
 
 self_pipe (const self_pipe &)=delete
 copy ctor
 
self_pipeoperator= (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)
 

Detailed Description

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

Member Function Documentation

◆ clr_buffer()

void tacopie::self_pipe::clr_buffer ( void  )

clear the pipe (basically read from the pipe)

◆ get_read_fd()

fd_t tacopie::self_pipe::get_read_fd ( void  ) const
Returns
the read fd of the pipe

◆ get_write_fd()

fd_t tacopie::self_pipe::get_write_fd ( void  ) const
Returns
the write fd of the pipe

◆ notify()

void tacopie::self_pipe::notify ( void  )

notify the self pipe (basically write to the pipe)


The documentation for this class was generated from the following file: