Proud::SocketSelectContext Class Referenceabstract

Public Member Functions

virtual void AddWriteWaiter (CSocket &socket)=0
 
virtual void AddExceptionWaiter (CSocket &socket)=0
 
virtual void Wait (uint32_t miliSec)=0
 
virtual bool GetConnectResult (CSocket &socket, SocketErrorCode &outCode)=0
 

Static Public Member Functions

static SocketSelectContextNew ()
 

Detailed Description

TODO:translate needed. SocketSelectContext class

  • For instruction examples, please refer to SimpleHttpConnect within the samples.
  • Usage for select() non-black model of the socket.
  • Warning: after calling wait, the content of FD_SET is changed. Therefore, this object must be used on one-time basis.
  • This feature is supportedin Win32 only. In iOS and Linux, use ::poll() instead.