SNode.C
|
#include <SocketContextUpgrade.h>
Protected Types | |
using | Request = RequestT |
using | Response = ResponseT |
using | SocketContextUpgradeFactory = web::http::SocketContextUpgradeFactory<Request, Response> |
Protected Member Functions | |
SocketContextUpgrade (core::socket::stream::SocketConnection *socketConnection, SocketContextUpgradeFactory *socketContextUpgradeFactory) | |
~SocketContextUpgrade () override | |
![]() | |
void | onWriteError (int errnum) override |
void | onReadError (int errnum) override |
![]() | |
SocketContext ()=default | |
virtual | ~SocketContext () |
virtual std::size_t | onReceivedFromPeer ()=0 |
virtual bool | onSignal (int sig)=0 |
Private Attributes | |
SocketContextUpgradeFactory * | socketContextUpgradeFactory = nullptr |
Additional Inherited Members | |
![]() | |
SocketContext (core::socket::stream::SocketConnection *socketConnection) | |
void | sendToPeer (const char *chunk, std::size_t chunkLen) const final |
bool | streamToPeer (core::pipe::Source *source) const |
void | streamEof () |
std::size_t | readFromPeer (char *chunk, std::size_t chunklen) const final |
void | setTimeout (const utils::Timeval &timeout) final |
void | shutdownRead () |
void | shutdownWrite (bool forceClose=false) |
void | close () override |
SocketConnection * | getSocketConnection () const |
virtual void | switchSocketContext (SocketContext *newSocketContext) |
void | sendToPeer (const std::string &data) const |
![]() | |
SocketContext (const SocketContext &)=delete | |
SocketContext (SocketContext &&)=delete | |
SocketContext & | operator= (const SocketContext &)=delete |
SocketContext & | operator= (SocketContext &&)=delete |
void | sendToPeer (const std::string &data) const |
Definition at line 37 of file SocketContextUpgrade.h.
|
protected |
Definition at line 39 of file SocketContextUpgrade.h.
|
protected |
Definition at line 40 of file SocketContextUpgrade.h.
|
protected |
Definition at line 42 of file SocketContextUpgrade.h.
|
inlineprotected |
Definition at line 44 of file SocketContextUpgrade.h.
|
inlineoverrideprotected |
Definition at line 51 of file SocketContextUpgrade.h.
|
private |
Definition at line 56 of file SocketContextUpgrade.h.