A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://fhessel.github.io/esp32_https_server/classhttpsserver_1_1HTTPConnection.html below:

ESP32 HTTPS Server: httpsserver::HTTPConnection Class Reference

Represents a single open connection for the plain HTTPServer, without TLS. More...

#include <HTTPConnection.hpp>

enum   {
  STATE_UNDEFINED, STATE_INITIAL, STATE_REQUEST_FINISHED, STATE_HEADERS_FINISHED,
  STATE_BODY_FINISHED, STATE_WEBSOCKET, STATE_CLOSING, STATE_CLOSED,
  STATE_ERROR
}   enum   { CSTATE_UNDEFINED, CSTATE_ACTIVE, CSTATE_CLOSED }   virtual size_t  writeBuffer (byte *buffer, size_t length)   virtual size_t  readBytesToBuffer (byte *buffer, size_t length)   virtual bool  canReadData ()   virtual size_t  pendingByteCount ()   unsigned long  _lastTransmissionTS   unsigned long  _shutdownTS   enum httpsserver::HTTPConnection:: { ... }   _connectionState   enum httpsserver::HTTPConnection:: { ... }   _clientState   class  HTTPRequest   class  HTTPResponse   class  WebsocketInputStreambuf  

Represents a single open connection for the plain HTTPServer, without TLS.

◆ getClientIP() IPAddress httpsserver::HTTPConnection::getClientIP ( ) virtual ◆ initialize() int httpsserver::HTTPConnection::initialize ( int  serverSocketID, HTTPHeadersdefaultHeaders  ) virtual

Initializes the connection from a server socket.

The call WILL BLOCK if accept(serverSocketID) blocks. So use select() to check for that in advance.

◆ isClosed() bool httpsserver::HTTPConnection::isClosed ( )

Returns true, if the connection has been closed.

◆ isError() bool httpsserver::HTTPConnection::isError ( )

Returns true, if the connection has been closed due to error

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4