Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
Socket_fdset Class Reference

Public Member Functions

 Socket_fdset ()
 The constructor.
 
void clear ()
 Marks the content as empty.
 
bool IsSetFor (const Socket_IP &incon) const
 check to see if a socket object has been marked for reading
 
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.
 
int WaitForRead (bool zeroFds, const Time_Span &timeout)
 
int WaitForRead (bool zeroFds, uint32_t sleep_time=0xffffffff)
 
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.
 

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().

◆ setForSocket()

void Socket_fdset::setForSocket ( const Socket_IP & incon)
inline

Definition at line 133 of file socket_fdset.h.

◆ 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().

◆ WaitForRead() [1/2]

int Socket_fdset::WaitForRead ( bool zeroFds,
const Time_Span & timeout )
inline

Definition at line 110 of file socket_fdset.h.

◆ WaitForRead() [2/2]

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

Definition at line 89 of file socket_fdset.h.

◆ 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().

Friends And Related Symbol Documentation

◆ Socket_Selector

friend struct Socket_Selector
friend

Definition at line 32 of file socket_fdset.h.


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