New build.

This commit is contained in:
barant committed 2020-04-13 09:40:58 -07:00
1 parent a5a51f8aae
commit b4ab5fb86a
835 files changed
+26499 -3119

No files matched your search

+13 -8
View File
@@ -23,27 +23,32 @@ namespace core {
class TCPSession : public TCPSocket {
public:
TCPSession(EPoll &ePoll, TCPServer &server);
TCPSession(EPoll &ePoll, TCPServer &server, std::string text);
TCPSession(EPoll &ePoll, TCPServer &server, std::string text = "");
~TCPSession();
Command *grab = NULL;
virtual void output(std::stringstream &data);
///
/// Use out to send data to the session socket or other session sockets.
///
std::stringstream out;
///
/// The send method is used to output the contents of the out stream
/// to the session containing the stream.
///
void send(std::string data);
void send();
///
/// Use this sendToAll method to output the contents of the out stream
/// to all the connections on the server excluding the sender session.
///
void sendToAll(std::string data);
void sendToAll();
///
/// Use this sendToAll method to output the contents of the out stream
@@ -51,14 +56,14 @@ namespace core {
/// and the entries identified by the passed in filter object.
///
void sendToAll(SessionFilter filter, std::string data);
void sendToAll(SessionFilter filter);
TCPServer &server;
protected:
virtual void onDataReceived(std::string data) override;
virtual void onRegister() override;
virtual void onRegistered() override;
///
/// This method is called from within the protocol method when protocol is called
@@ -66,7 +71,7 @@ namespace core {
/// to deliver a message to the connection upon connection.
///
virtual void onConnected(std::stringstream &out);
virtual void onConnected();
///
/// Override the protocol method to manage and control the session communications
@@ -75,7 +80,7 @@ namespace core {
/// processRequest method on the session input.
///
virtual void protocol(std::stringstream &out, std::string data);
virtual void protocol(std::string data);
private: