Panda3D
 All Classes Functions Variables Enumerations
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, PN_uint32 sleep_time=0xffffffff)
 This is the function that will wait till one of the sockets is in error state. More...
 
int WaitForRead (bool zeroFds, PN_uint32 sleep_time=0xffffffff)
 
int WaitForRead (bool zeroFds, const Time_Span &timeout)
 
int WaitForWrite (bool zeroFds, PN_uint32 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 19 of file socket_fdset.h.

Constructor & Destructor Documentation

Socket_fdset::Socket_fdset ( )
inline

The constructor.

Definition at line 48 of file socket_fdset.h.

References clear().

Member Function Documentation

void Socket_fdset::clear ( )
inline
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 89 of file socket_fdset.h.

References Socket_IP::GetSocket().

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

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

Definition at line 185 of file socket_fdset.h.

References clear().

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

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

Definition at line 159 of file socket_fdset.h.

References clear().


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