|
| HttpServerConnection (tcp_pcb *clientTcp) |
|
| ~HttpServerConnection () |
|
void | setResourceTree (HttpResourceTree *resourceTree) |
|
void | setBodyParsers (const BodyParsers *bodyParsers) |
|
void | send () |
|
void | setUpgradeCallback (HttpServerProtocolUpgradeCallback callback) |
|
HttpRequest * | getRequest () override |
| Returns pointer to the current request. More...
|
|
void | setCloseOnContentError (bool close=true) |
|
virtual bool | send (HttpRequest *request) |
|
bool | send (const char *data, uint16_t len, bool forceCloseAfterSent=false) |
|
bool | send (IDataSourceStream *source, bool forceCloseAfterSent=false) |
| Sends data stream. More...
|
|
| HttpConnection (http_parser_type type, bool autoDestruct=false) |
|
| HttpConnection (tcp_pcb *connection, http_parser_type type) |
|
virtual void | reset () |
|
virtual void | cleanup () |
|
virtual void | setDefaultParser () |
|
bool | isActive () |
|
HttpResponse * | getResponse () |
| Returns pointer to the current response. More...
|
|
IpAddress | getRemoteIp () const |
|
uint16_t | getRemotePort () const |
|
bool | send (const char *data, uint16_t len, bool forceCloseAfterSent=false) |
|
bool | send (IDataSourceStream *source, bool forceCloseAfterSent=false) |
| Sends data stream. More...
|
|
| TcpClient (bool autoDestruct) |
|
| TcpClient (tcp_pcb *clientTcp, TcpClientDataDelegate clientReceive, TcpClientCompleteDelegate onCompleted) |
|
| TcpClient (TcpClientCompleteDelegate onCompleted, TcpClientEventDelegate onReadyToSend, TcpClientDataDelegate onReceive=nullptr) |
|
| TcpClient (TcpClientCompleteDelegate onCompleted, TcpClientDataDelegate onReceive=nullptr) |
|
| TcpClient (TcpClientDataDelegate onReceive) |
|
| ~TcpClient () |
|
bool | connect (const String &server, int port, bool useSsl=false) override |
|
bool | connect (IpAddress addr, uint16_t port, bool useSsl=false) override |
|
void | close () override |
|
void | setReceiveDelegate (TcpClientDataDelegate receiveCb=nullptr) |
| Set or clear the callback for received data. More...
|
|
void | setCompleteDelegate (TcpClientCompleteDelegate completeCb=nullptr) |
| Set or clear the callback for connection close. More...
|
|
bool | send (const char *data, uint16_t len, bool forceCloseAfterSent=false) |
|
bool | sendString (const String &data, bool forceCloseAfterSent=false) |
|
bool | send (IDataSourceStream *source, bool forceCloseAfterSent=false) |
| Sends data stream. More...
|
|
bool | isProcessing () |
|
TcpClientState | getConnectionState () |
|
void | setCloseAfterSent (bool ignoreIncomingData=false) |
|
void | commit () |
| Tries to send the pending data immediately. More...
|
|
| TcpConnection (bool autoDestruct) |
|
| TcpConnection (tcp_pcb *connection, bool autoDestruct) |
|
virtual | ~TcpConnection () |
|
void | setAutoSelfDestruct (bool state) |
|
int | writeString (const char *data, uint8_t apiflags=TCP_WRITE_FLAG_COPY) |
| Writes string data directly to the TCP buffer. More...
|
|
int | writeString (const String &data, uint8_t apiflags=TCP_WRITE_FLAG_COPY) |
| Writes string data directly to the TCP buffer. More...
|
|
virtual int | write (const char *data, int len, uint8_t apiflags=TCP_WRITE_FLAG_COPY) |
| Base write operation. More...
|
|
int | write (IDataSourceStream *stream) |
| Writes stream data directly to the TCP buffer. More...
|
|
uint16_t | getAvailableWriteSize () |
|
void | flush () |
|
void | setTimeOut (uint16_t waitTimeOut) |
|
IpAddress | getRemoteIp () const |
|
uint16_t | getRemotePort () const |
|
void | setDestroyedDelegate (TcpConnectionDestroyedDelegate destroyedDelegate) |
| Sets a callback to be called when the object instance is destroyed. More...
|
|
void | setSslInitHandler (Ssl::Session::InitDelegate handler) |
| Set the SSL session initialisation callback. More...
|
|
bool | setSslConnection (Ssl::Connection *connection) |
|
Ssl::Session * | getSsl () |
| Get a pointer to the current SSL session object. More...
|
|
bool | joinMulticastGroup (IpAddress localIp, IpAddress multicastIp) |
| Uses IGMP to add a local network interface to multicast group. More...
|
|
bool | joinMulticastGroup (IpAddress multicastIp) |
| Uses IGMP to add all local network interfaces to multicast group. More...
|
|
bool | leaveMulticastGroup (IpAddress localIp, IpAddress multicastIp) |
| Uses IGMP to remove a local network interface from multicast group. More...
|
|
bool | leaveMulticastGroup (IpAddress multicastIp) |
| Uses IGMP to remove all local network interfaces from multicast group. More...
|
|
|
bool | send (HttpRequest *request) override |
|
int | onMessageBegin (http_parser *parser) override |
| Called when a new incoming data is beginning to come. More...
|
|
int | onPath (const Url &path) override |
| Called when the URL path is known. More...
|
|
int | onHeadersComplete (const HttpHeaders &headers) override |
| Called when all headers are received. More...
|
|
int | onBody (const char *at, size_t length) override |
| Called when a piece of body data is received. More...
|
|
int | onMessageComplete (http_parser *parser) override |
| Called when the incoming data is complete. More...
|
|
bool | onProtocolUpgrade (http_parser *parser) override |
| Called when the HTTP protocol should be upgraded. More...
|
|
bool | onHttpError (HttpError error) override |
| Called when there was an error. More...
|
|
void | onReadyToSendData (TcpConnectionEvent sourceEvent) override |
|
virtual void | sendError (const String &message=nullptr, HttpStatus code=HTTP_STATUS_BAD_REQUEST) |
|
void | resetHeaders () |
| Called after all headers have been received and processed. More...
|
|
virtual void | init (http_parser_type type) |
| Initializes the http parser for a specific type of HTTP message. More...
|
|
virtual int | onStatus (http_parser *parser) |
|
virtual int | onChunkHeader (http_parser *parser) |
|
virtual int | onChunkComplete (http_parser *parser) |
|
virtual bool | onTcpReceive (TcpClient &client, char *data, int size) |
|
void | onError (err_t err) override |
|
err_t | onConnected (err_t err) override |
|
err_t | onReceive (pbuf *buf) override |
|
err_t | onSent (uint16_t len) override |
|
void | onError (err_t err) override |
|
void | onClosed () override |
| Gets called when there is/was a tcp connection, the latter does not have to be established, that is closed due to error or normal disconnect. More...
|
|
void | onReadyToSendData (TcpConnectionEvent sourceEvent) override |
|
virtual void | onFinished (TcpClientState finishState) |
|
void | pushAsyncPart () |
|
void | freeStreams () |
|
void | initialize (tcp_pcb *pcb) |
|
bool | internalConnect (IpAddress addr, uint16_t port) |
|
bool | sslCreateSession () |
|
virtual void | sslInitSession (Ssl::Session &session) |
| Override in inherited classes to perform custom session initialisation. More...
|
|
virtual err_t | onPoll () |
|
void | trySend (TcpConnectionEvent event) |
|
err_t | internalOnConnected (err_t err) |
|
err_t | internalOnReceive (pbuf *p, err_t err) |
|
err_t | internalOnSent (uint16_t len) |
|
err_t | internalOnPoll () |
|
void | internalOnError (err_t err) |
|
void | internalOnDnsResponse (const char *name, LWIP_IP_ADDR_T *ipaddr, int port) |
|