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

#include <self_pipe.hpp>

Public Member Functions

 self_pipe (void)
 ctor More...
 
 ~self_pipe (void)
 dtor More...
 
 self_pipe (const self_pipe &)=delete
 copy ctor More...
 
self_pipeoperator= (const self_pipe &)=delete
 assignment operator More...
 
fd_t get_read_fd (void) const
 
fd_t get_write_fd (void) const
 
void notify (void)
 
void clr_buffer (void)
 

Private Attributes

fd_t m_fds [2]
 

Constructor & Destructor Documentation

◆ self_pipe() [1/2]

tacopie::self_pipe::self_pipe ( void  )

ctor

◆ ~self_pipe()

tacopie::self_pipe::~self_pipe ( void  )

dtor

◆ self_pipe() [2/2]

tacopie::self_pipe::self_pipe ( const self_pipe )
delete

copy ctor

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)

◆ operator=()

self_pipe& tacopie::self_pipe::operator= ( const self_pipe )
delete

assignment operator

Member Data Documentation

◆ m_fds

fd_t tacopie::self_pipe::m_fds[2]
private

pipe file descriptors


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