Lolly 1.4.28
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
_pipe_t Struct Reference
Collaboration diagram for _pipe_t:
Collaboration graph
[legend]

Public Member Functions

 _pipe_t ()
 
 ~_pipe_t ()
 
int in () const
 
int out () const
 
int status () const
 

Public Attributes

int rep [2]
 
int st
 

Detailed Description

Definition at line 96 of file unix_sys_utils.cpp.

Constructor & Destructor Documentation

◆ _pipe_t()

_pipe_t::_pipe_t ( )
inline

Definition at line 99 of file unix_sys_utils.cpp.

99 {
100 st = pipe (rep);
101 int fl= fcntl (rep[0], F_GETFL);
102 fl = fl & (~(int) O_NONBLOCK);
103 fcntl (rep[0], F_SETFL, fl);
104 fl= fcntl (rep[1], F_GETFL);
105 fl= fl & (~(int) O_NONBLOCK);
106 fcntl (rep[1], F_SETFL, fl);
107 }
The list class represents a linked list.
Definition list.hpp:48
base class of resources
Definition resource.hpp:23

◆ ~_pipe_t()

_pipe_t::~_pipe_t ( )
inline

Definition at line 108 of file unix_sys_utils.cpp.

108 {
109 close (rep[0]);
110 close (rep[1]);
111 }

Member Function Documentation

◆ in()

int _pipe_t::in ( ) const
inline

Definition at line 112 of file unix_sys_utils.cpp.

112{ return rep[0]; }

◆ out()

int _pipe_t::out ( ) const
inline

Definition at line 113 of file unix_sys_utils.cpp.

113{ return rep[1]; }

◆ status()

int _pipe_t::status ( ) const
inline

Definition at line 114 of file unix_sys_utils.cpp.

114{ return st; }

Member Data Documentation

◆ rep

int _pipe_t::rep[2]

Definition at line 97 of file unix_sys_utils.cpp.

◆ st

int _pipe_t::st

Definition at line 98 of file unix_sys_utils.cpp.


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