fastcgi++
A C++ FastCGI/Web API
Public Member Functions | Public Attributes | List of all members
Fastcgipp::Socket::Data Struct Reference

Data structure to hold the shared socket data. More...

Public Member Functions

 Data (const socket_t &socket, bool valid, SocketGroup &group)
 Sole constructor. More...
 
 Data ()=delete
 
 Data (const Data &)=delete
 

Public Attributes

const socket_t m_socket
 OS level socket identifier. More...
 
bool m_valid
 Indicates whether or not the socket is dead/invalid. More...
 
bool m_closing
 Indicates whether or not the connection is closing. More...
 
SocketGroupm_group
 SocketGroup object this socket is tied to. More...
 

Detailed Description

Data structure to hold the shared socket data.

Definition at line 90 of file sockets.hpp.

Constructor & Destructor Documentation

Fastcgipp::Socket::Data::Data ( const socket_t socket,
bool  valid,
SocketGroup group 
)
inline

Sole constructor.

Parameters
[in,out]socketThe OS level socket identifier to associate with this.
[in,out]groupThe SocketGroup object that created and is consolidating this socket and it's peers.
[in]validSet to false if this is a dead socket. Sometimes it may be needed to create a socket that is invalid off the start.

Definition at line 118 of file sockets.hpp.

References Data().

Fastcgipp::Socket::Data::Data ( )
delete

Referenced by Data().

Fastcgipp::Socket::Data::Data ( const Data )
delete

Member Data Documentation

bool Fastcgipp::Socket::Data::m_closing

Indicates whether or not the connection is closing.

If this is set to true that once we read zero bytes out of the socket it has become invalid.

Definition at line 103 of file sockets.hpp.

SocketGroup& Fastcgipp::Socket::Data::m_group

SocketGroup object this socket is tied to.

Definition at line 106 of file sockets.hpp.

const socket_t Fastcgipp::Socket::Data::m_socket

OS level socket identifier.

Definition at line 93 of file sockets.hpp.

bool Fastcgipp::Socket::Data::m_valid

Indicates whether or not the socket is dead/invalid.

Definition at line 96 of file sockets.hpp.


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