PlasCom2  1.0
XPACC Multi-physics simluation application
FDSetMan Class Reference

Detailed Description

Definition at line 201 of file FDUtils.H.

#include <FDUtils.H>

Public Types

typedef std::vector< int > FDContainerType
 

Public Member Functions

 FDSetMan ()
 
fd_set & ReadSet ()
 
const fd_set ReadSet () const
 
fd_set & WriteSet ()
 
const fd_set WriteSet () const
 
fd_set & ExceptionSet ()
 
const fd_set ExceptionSet () const
 
void SetOutDescriptor (int infd)
 
void SetInDescriptor (int infd)
 
void ClearOutDescriptor (int infd)
 
void ClearInDescriptor (int infd)
 
int AddOutDescriptor (int infd)
 
int AddInDescriptor (int infd)
 
int AddIODescriptor (int infd)
 
void Zero ()
 
void Clear (int infd)
 
void SetForRead (int infd=-1)
 
template<class FDContainer >
void SetForRead (const FDContainer &fds, bool reset=true)
 
void SetForWrite (int infd=-1)
 
template<class FDContainer >
void SetForWrite (const FDContainer &fds)
 
void SetForIO (int infd=-1)
 
template<class FDContainer >
void SetForIO (const FDContainer &fds, bool reset=true)
 
int ReadyForOutput (int infd=-1)
 
int ReadyForInput (int infd=-1)
 
template<class FDContainer >
int ReadyForOutput (const FDContainer &fds)
 
template<class FDContainer >
int ReadyForInput (const FDContainer &fds)
 
int Select (float seconds=0.0, bool reset=true)
 
int ListenForInput (float seconds=0.0, bool reset=true)
 
int ListenForOutput (float seconds=0.0, bool reset=true)
 
template<class FDContainer >
int NSet (const FDContainer &fds, fd_set *fdset)
 
template<class FDContainer >
void Set (const FDContainer &fds, fd_set *fdset, bool reset=true)
 

Private Attributes

fd_set readset
 
fd_set writeset
 
fd_set exset
 
int max_descriptor
 
FDContainerType o_descriptors
 
FDContainerType i_descriptors
 
FDContainerType io_descriptors
 
Collaboration diagram for FDSetMan:

Member Typedef Documentation

◆ FDContainerType

typedef std::vector<int> FDContainerType

Definition at line 204 of file FDUtils.H.

Constructor & Destructor Documentation

◆ FDSetMan()

FDSetMan ( )
inline

Definition at line 217 of file FDUtils.H.

Member Function Documentation

◆ AddInDescriptor()

int AddInDescriptor ( int  infd)
inline

Definition at line 265 of file FDUtils.H.

Referenced by ix::TestTCPInterface().

Here is the caller graph for this function:

◆ AddIODescriptor()

int AddIODescriptor ( int  infd)
inline

Definition at line 273 of file FDUtils.H.

Referenced by ix::TestTCPInterface().

Here is the caller graph for this function:

◆ AddOutDescriptor()

int AddOutDescriptor ( int  infd)
inline

Definition at line 255 of file FDUtils.H.

◆ Clear()

void Clear ( int  infd)
inline

Definition at line 288 of file FDUtils.H.

◆ ClearInDescriptor()

void ClearInDescriptor ( int  infd)
inline

Definition at line 251 of file FDUtils.H.

◆ ClearOutDescriptor()

void ClearOutDescriptor ( int  infd)
inline

Definition at line 247 of file FDUtils.H.

◆ ExceptionSet() [1/2]

fd_set& ExceptionSet ( )
inline

Definition at line 233 of file FDUtils.H.

◆ ExceptionSet() [2/2]

const fd_set ExceptionSet ( ) const
inline

Definition at line 234 of file FDUtils.H.

◆ ListenForInput()

int ListenForInput ( float  seconds = 0.0,
bool  reset = true 
)
inline

Definition at line 398 of file FDUtils.H.

References operators::Zero().

Here is the call graph for this function:

◆ ListenForOutput()

int ListenForOutput ( float  seconds = 0.0,
bool  reset = true 
)
inline

Definition at line 417 of file FDUtils.H.

References operators::Zero().

Here is the call graph for this function:

◆ NSet()

int NSet ( const FDContainer &  fds,
fd_set *  fdset 
)
inline

Definition at line 437 of file FDUtils.H.

◆ ReadSet() [1/2]

fd_set& ReadSet ( )
inline

Definition at line 229 of file FDUtils.H.

◆ ReadSet() [2/2]

const fd_set ReadSet ( ) const
inline

Definition at line 230 of file FDUtils.H.

◆ ReadyForInput() [1/2]

int ReadyForInput ( int  infd = -1)
inline

Definition at line 356 of file FDUtils.H.

Referenced by ix::TestTCPInterface().

Here is the caller graph for this function:

◆ ReadyForInput() [2/2]

int ReadyForInput ( const FDContainer &  fds)
inline

Definition at line 374 of file FDUtils.H.

◆ ReadyForOutput() [1/2]

int ReadyForOutput ( int  infd = -1)
inline

Definition at line 345 of file FDUtils.H.

Referenced by ix::TestTCPInterface().

Here is the caller graph for this function:

◆ ReadyForOutput() [2/2]

int ReadyForOutput ( const FDContainer &  fds)
inline

Definition at line 369 of file FDUtils.H.

◆ Select()

int Select ( float  seconds = 0.0,
bool  reset = true 
)
inline

Definition at line 378 of file FDUtils.H.

References operators::Zero().

Referenced by ix::TestTCPInterface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Set()

void Set ( const FDContainer &  fds,
fd_set *  fdset,
bool  reset = true 
)
inline

Definition at line 448 of file FDUtils.H.

◆ SetForIO() [1/2]

void SetForIO ( int  infd = -1)
inline

Definition at line 324 of file FDUtils.H.

◆ SetForIO() [2/2]

void SetForIO ( const FDContainer &  fds,
bool  reset = true 
)
inline

Definition at line 338 of file FDUtils.H.

◆ SetForRead() [1/2]

void SetForRead ( int  infd = -1)
inline

Definition at line 296 of file FDUtils.H.

◆ SetForRead() [2/2]

void SetForRead ( const FDContainer &  fds,
bool  reset = true 
)
inline

Definition at line 306 of file FDUtils.H.

◆ SetForWrite() [1/2]

void SetForWrite ( int  infd = -1)
inline

Definition at line 310 of file FDUtils.H.

◆ SetForWrite() [2/2]

void SetForWrite ( const FDContainer &  fds)
inline

Definition at line 320 of file FDUtils.H.

◆ SetInDescriptor()

void SetInDescriptor ( int  infd)
inline

Definition at line 241 of file FDUtils.H.

◆ SetOutDescriptor()

void SetOutDescriptor ( int  infd)
inline

Definition at line 235 of file FDUtils.H.

◆ WriteSet() [1/2]

fd_set& WriteSet ( )
inline

Definition at line 231 of file FDUtils.H.

◆ WriteSet() [2/2]

const fd_set WriteSet ( ) const
inline

Definition at line 232 of file FDUtils.H.

◆ Zero()

void Zero ( )
inline

Definition at line 282 of file FDUtils.H.

Member Data Documentation

◆ exset

fd_set exset
private

Definition at line 208 of file FDUtils.H.

◆ i_descriptors

FDContainerType i_descriptors
private

Definition at line 211 of file FDUtils.H.

◆ io_descriptors

FDContainerType io_descriptors
private

Definition at line 212 of file FDUtils.H.

◆ max_descriptor

int max_descriptor
private

Definition at line 209 of file FDUtils.H.

◆ o_descriptors

FDContainerType o_descriptors
private

Definition at line 210 of file FDUtils.H.

◆ readset

fd_set readset
private

Definition at line 206 of file FDUtils.H.

◆ writeset

fd_set writeset
private

Definition at line 207 of file FDUtils.H.


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