SNode.C
|
#include <Echo.h>
Public Member Functions | |
Echo (web::websocket::SubProtocolContext *socketContextUpgradeBase, const std::string &name) | |
![]() | |
~SubProtocol () override | |
void | subscribe (const std::string &group) |
void | sendBroadcast (const char *message, std::size_t messageLength, bool excludeSelf=false) |
void | sendBroadcast (const std::string &message, bool excludeSelf=false) |
void | sendBroadcastStart (const char *message, std::size_t messageLength, bool excludeSelf=false) |
void | sendBroadcastStart (const std::string &message, bool excludeSelf=false) |
void | sendBroadcastFrame (const char *message, std::size_t messageLength, bool excludeSelf=false) |
void | sendBroadcastFrame (const std::string &message, bool excludeSelf=false) |
void | sendBroadcastEnd (const char *message, std::size_t messageLength, bool excludeSelf=false) |
void | sendBroadcastEnd (const std::string &message, bool excludeSelf=false) |
void | forEachClient (const std::function< void(const SubProtocol *)> &sendToClient, bool excludeSelf=false) |
![]() | |
SubProtocol (SubProtocol &)=delete | |
SubProtocol (SubProtocol &&)=delete | |
SubProtocol & | operator= (SubProtocol &)=delete |
SubProtocol & | operator= (SubProtocol &&)=delete |
void | sendMessage (const char *message, std::size_t messageLength) const |
void | sendMessage (const std::string &message) const |
void | sendMessageStart (const char *message, std::size_t messageLength) const |
void | sendMessageStart (const std::string &message) const |
void | sendMessageFrame (const char *message, std::size_t messageLength) const |
void | sendMessageFrame (const std::string &message) const |
void | sendMessageEnd (const char *message, std::size_t messageLength) const |
void | sendMessageEnd (const std::string &message) const |
void | sendPing (const char *reason=nullptr, std::size_t reasonLength=0) const |
void | sendClose (uint16_t statusCode=1000, const char *reason=nullptr, std::size_t reasonLength=0) |
const std::string & | getName () |
core::socket::stream::SocketConnection * | getSocketConnection () const |
Private Member Functions | |
void | onConnected () override |
void | onMessageStart (int opCode) override |
void | onMessageData (const char *chunk, std::size_t chunkLen) override |
void | onMessageEnd () override |
void | onMessageError (uint16_t errnum) override |
void | onDisconnected () override |
bool | onSignal (int sig) override |
Private Attributes | |
std::string | data |
Additional Inherited Members | |
![]() | |
SubProtocol (SubProtocolContext *subProtocolContext, const std::string &name, int pingInterval=0, int maxFlyingPings=3) | |
![]() | |
SubProtocol (SubProtocolContext *subProtocolContext, const std::string &name, int pingInterval=60, int maxFlyingPings=3) | |
![]() | |
SubProtocolContext * | subProtocolContext |
apps::websocket::subprotocol::echo::server::Echo::Echo | ( | web::websocket::SubProtocolContext * | socketContextUpgradeBase, |
const std::string & | name ) |
Definition at line 36 of file Echo.cpp.
|
overrideprivatevirtual |
Implements web::websocket::SubProtocol< web::websocket::server::SocketContextUpgrade >.
Definition at line 40 of file Echo.cpp.
|
overrideprivatevirtual |
Implements web::websocket::SubProtocol< web::websocket::server::SocketContextUpgrade >.
Definition at line 73 of file Echo.cpp.
|
overrideprivatevirtual |
Implements web::websocket::SubProtocol< web::websocket::server::SocketContextUpgrade >.
Definition at line 51 of file Echo.cpp.
|
overrideprivatevirtual |
Implements web::websocket::SubProtocol< web::websocket::server::SocketContextUpgrade >.
Definition at line 57 of file Echo.cpp.
|
overrideprivatevirtual |
Implements web::websocket::SubProtocol< web::websocket::server::SocketContextUpgrade >.
Definition at line 69 of file Echo.cpp.
|
overrideprivatevirtual |
Implements web::websocket::SubProtocol< web::websocket::server::SocketContextUpgrade >.
Definition at line 47 of file Echo.cpp.
|
overrideprivatevirtual |
Implements web::websocket::SubProtocol< web::websocket::server::SocketContextUpgrade >.
Definition at line 77 of file Echo.cpp.
|
private |