Panda3D
Public Member Functions | Friends | List of all members
Socket_fdset Class Reference

Public Member Functions

 Socket_fdset ()
 The constructor. More...
 
void clear ()
 Marks the content as empty. More...
 
bool IsSetFor (const Socket_IP &incon) const
 check to see if a socket object has been marked for reading More...
 
void setForSocket (const Socket_IP &incon)
 
int WaitForError (bool zeroFds, uint32_t sleep_time=0xffffffff)
 This is the function that will wait till one of the sockets is in error state. More...
 
int WaitForRead (bool zeroFds, uint32_t sleep_time=0xffffffff)
 
int WaitForRead (bool zeroFds, const Time_Span &timeout)
 
int WaitForWrite (bool zeroFds, uint32_t sleep_time=0xffffffff)
 This is the function that will wait till one of the sockets is ready for writing. More...
 

Friends

struct Socket_Selector
 

Detailed Description

Definition at line 16 of file socket_fdset.h.

Constructor & Destructor Documentation

◆ Socket_fdset()

Socket_fdset::Socket_fdset ( )
inline

The constructor.

Definition at line 44 of file socket_fdset.h.

References clear().

Member Function Documentation

◆ clear()

void Socket_fdset::clear ( )
inline

◆ IsSetFor()

bool Socket_fdset::IsSetFor ( const Socket_IP incon) const
inline

check to see if a socket object has been marked for reading

Definition at line 81 of file socket_fdset.h.

References Socket_IP::GetSocket().

◆ WaitForError()

int Socket_fdset::WaitForError ( bool  zeroFds,
uint32_t  sleep_time = 0xffffffff 
)
inline

This is the function that will wait till one of the sockets is in error state.

Definition at line 167 of file socket_fdset.h.

References clear().

◆ WaitForWrite()

int Socket_fdset::WaitForWrite ( bool  zeroFds,
uint32_t  sleep_time = 0xffffffff 
)
inline

This is the function that will wait till one of the sockets is ready for writing.

Definition at line 142 of file socket_fdset.h.

References clear().


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