#include <SocketContext.h>
Definition at line 36 of file SocketContext.h.
◆ SocketContext() [1/3]
core::socket::SocketContext::SocketContext |
( |
| ) |
|
|
protecteddefault |
◆ SocketContext() [2/3]
core::socket::SocketContext::SocketContext |
( |
const SocketContext & | | ) |
|
|
delete |
◆ SocketContext() [3/3]
◆ ~SocketContext()
core::socket::SocketContext::~SocketContext |
( |
| ) |
|
|
protectedvirtual |
◆ close()
virtual void core::socket::SocketContext::close |
( |
| ) |
|
|
pure virtual |
◆ onReadError()
virtual void core::socket::SocketContext::onReadError |
( |
int | errnum | ) |
|
|
protectedpure virtual |
◆ onReceivedFromPeer()
virtual std::size_t core::socket::SocketContext::onReceivedFromPeer |
( |
| ) |
|
|
protectedpure virtual |
Implemented in apps::echo::model::EchoSocketContext, apps::http::SimpleSocketProtocol, apps::http::SimpleSocketProtocol, iot::mqtt::SocketContext, iot::mqtt_fast::SocketContext, web::http::client::SocketContext, web::http::server::SocketContext, web::websocket::SocketContextUpgrade< SubProtocolT, RequestT, ResponseT >, web::websocket::SocketContextUpgrade< SubProtocol, web::http::client::Request, web::http::client::Response >, and web::websocket::SocketContextUpgrade< SubProtocol, web::http::server::Request, web::http::server::Response >.
◆ onSignal()
virtual bool core::socket::SocketContext::onSignal |
( |
int | sig | ) |
|
|
protectedpure virtual |
Implemented in apps::echo::model::EchoSocketContext, apps::http::SimpleSocketProtocol, apps::http::SimpleSocketProtocol, iot::mqtt::SocketContext, web::http::client::SocketContext, web::http::server::SocketContext, web::websocket::SocketContextUpgrade< SubProtocolT, RequestT, ResponseT >, web::websocket::SocketContextUpgrade< SubProtocol, web::http::client::Request, web::http::client::Response >, and web::websocket::SocketContextUpgrade< SubProtocol, web::http::server::Request, web::http::server::Response >.
◆ onWriteError()
virtual void core::socket::SocketContext::onWriteError |
( |
int | errnum | ) |
|
|
protectedpure virtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ readFromPeer()
virtual std::size_t core::socket::SocketContext::readFromPeer |
( |
char * | chunk, |
|
|
std::size_t | chunklen ) const |
|
pure virtual |
◆ sendToPeer() [1/2]
virtual void core::socket::SocketContext::sendToPeer |
( |
const char * | chunk, |
|
|
std::size_t | chunkLen ) const |
|
pure virtual |
◆ sendToPeer() [2/2]
void core::socket::SocketContext::sendToPeer |
( |
const std::string & | data | ) |
const |
Definition at line 31 of file SocketContext.cpp.
31 {
33 }
void sendToPeer(const std::string &data) const
◆ setTimeout()
virtual void core::socket::SocketContext::setTimeout |
( |
const utils::Timeval & | timeout | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: