| 
    Jpp
    17.3.1
    
   the software that should make you happy 
   | 
 
Auxiliary class for non-blocking socket I/O. More...
#include <JSocketNonblocking.hh>
  
 Public Types | |
| enum | JStatus_t { IO_RESET = -1, IO_READY = 0, IO_BUSY = +1 } | 
Public Member Functions | |
| JSocketBuffer (JElement_t *buffer, const int length) | |
| Constructor.  More... | |
| int | getSize () const | 
| Get size of pending data.  More... | |
| void | set (const JSocketBuffer< JElement_t > &buffer) | 
| Initialise buffer.  More... | |
| void | set (JElement_t *buffer, const int length) | 
| Initialise buffer.  More... | |
| void | reset () | 
| Reset.  More... | |
| JStatus_t | getStatus () const | 
| Get status of I/O.  More... | |
| bool | isReset () const | 
| Check reset status.  More... | |
| bool | isBusy () const | 
| Check busy status.  More... | |
| bool | isReady () const | 
| Check ready status.  More... | |
| int | getCounter () const | 
| Get number of I/O attempts.  More... | |
Protected Member Functions | |
| JSocketBuffer () | |
| Default constructor.  More... | |
| void | setStatus (const JStatus_t status) | 
| Set status of I/O.  More... | |
Protected Attributes | |
| JElement_t * | __data | 
| int | __size | 
| JStatus_t | status | 
| int | counter | 
Auxiliary class for non-blocking socket I/O.
Definition at line 22 of file JSocketNonblocking.hh.
      
  | 
  inherited | 
| Enumerator | |
|---|---|
| IO_RESET | |
| IO_READY | |
| IO_BUSY | |
Definition at line 26 of file JSocketStatus.hh.
      
  | 
  inlineprotected | 
Default constructor.
Definition at line 29 of file JSocketNonblocking.hh.
      
  | 
  inline | 
Constructor.
| buffer | I/O data | 
| length | number of bytes | 
Definition at line 43 of file JSocketNonblocking.hh.
      
  | 
  inline | 
Get size of pending data.
Definition at line 55 of file JSocketNonblocking.hh.
      
  | 
  inline | 
Initialise buffer.
| buffer | buffer | 
Definition at line 66 of file JSocketNonblocking.hh.
      
  | 
  inline | 
Initialise buffer.
| buffer | I/O data | 
| length | number of bytes | 
Definition at line 78 of file JSocketNonblocking.hh.
      
  | 
  inline | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Check reset status.
Definition at line 54 of file JSocketStatus.hh.
      
  | 
  inlineinherited | 
Check busy status.
Definition at line 65 of file JSocketStatus.hh.
      
  | 
  inlineinherited | 
Check ready status.
Definition at line 76 of file JSocketStatus.hh.
      
  | 
  inlineinherited | 
Get number of I/O attempts.
Definition at line 87 of file JSocketStatus.hh.
      
  | 
  inlineprotectedinherited | 
      
  | 
  protected | 
Definition at line 104 of file JSocketNonblocking.hh.
      
  | 
  protected | 
Definition at line 105 of file JSocketNonblocking.hh.
      
  | 
  protectedinherited | 
Definition at line 115 of file JSocketStatus.hh.
      
  | 
  protectedinherited | 
Definition at line 116 of file JSocketStatus.hh.
 1.8.5