Bredbandskollen CLI  1.2
Asynchronous network task engine
Enumerations
pollstate.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  PollState {
  NONE , READ_BLOCKED , CONNECTING , TLS_HANDSHAKE ,
  CLOSE , KEEPALIVE , KILL , READ ,
  WRITE , READ_WRITE
}
 

Enumeration Type Documentation

◆ PollState

enum PollState
strong

After doing an operation on a socket, a PollState must be returned to the network engine to describe what you want it to do next with the socket.

Enumerator
NONE 

Do nothing right now, but keep socket open for later.

READ_BLOCKED 

Don't check for incoming data/close, but check for writability if wantToSend().

CONNECTING 

Wait for asynchronous connect to complete.

TLS_HANDSHAKE 

Wait for TLS handshake to complete.

CLOSE 

Close the socket gracefully.

KEEPALIVE 

Put the connected socket in keep-alive cache.

KILL 

Terminate connection immediately, discarding buffers.

READ 

Check for incoming data/close.

WRITE 

Check for close, and for writability.

READ_WRITE 

Check for incoming data/close, and for writability.