|
STTNet
|
Structure to save client WS/WSS request information. More...
#include <sttnet_English.h>
Public Attributes | |
| int | fd |
| Underlying socket descriptor. More... | |
| bool | closeflag |
| true: Close frame sent, false: Close frame not sent More... | |
| std::string | locPara |
| Http/Https path and parameters during the handshake phase. More... | |
| std::string | header |
| Http/Https request header during the handshake phase. More... | |
| time_t | HBTime = 0 |
| Time of sending heartbeat (fill in 0 if not sent) (should be cleared to 0 after checking) More... | |
| time_t | response |
| Time of last received message. More... | |
| size_t | recv_length |
| Length to be received. More... | |
| size_t | have_recv_length |
| Length have received. More... | |
| int | message_type |
| Message type. More... | |
| std::string | message ="" |
| Message. More... | |
| bool | fin |
| state of fin More... | |
| std::string | mask |
| mask More... | |
| std::unordered_map < std::string, std::any > | ctx |
| required data warehouse More... | |
Structure to save client WS/WSS request information.
| bool stt::network::WebSocketFDInformation::closeflag |
true: Close frame sent, false: Close frame not sent
| std::unordered_map<std::string,std::any> stt::network::WebSocketFDInformation::ctx |
required data warehouse
| int stt::network::WebSocketFDInformation::fd |
Underlying socket descriptor.
| bool stt::network::WebSocketFDInformation::fin |
state of fin
| size_t stt::network::WebSocketFDInformation::have_recv_length |
Length have received.
| time_t stt::network::WebSocketFDInformation::HBTime = 0 |
Time of sending heartbeat (fill in 0 if not sent) (should be cleared to 0 after checking)
| std::string stt::network::WebSocketFDInformation::header |
Http/Https request header during the handshake phase.
| std::string stt::network::WebSocketFDInformation::locPara |
Http/Https path and parameters during the handshake phase.
| std::string stt::network::WebSocketFDInformation::mask |
mask
| std::string stt::network::WebSocketFDInformation::message ="" |
Message.
| int stt::network::WebSocketFDInformation::message_type |
Message type.
| size_t stt::network::WebSocketFDInformation::recv_length |
Length to be received.
| time_t stt::network::WebSocketFDInformation::response |
Time of last received message.
1.8.5