Many changes

This commit is contained in:
Brad Arant committed 2021-08-05 13:07:53 -07:00
1 parent 50bbfcc3c3
commit 46f98dff69
11 files changed
+110 -100

No files matched your search

+23 -17
View File
@@ -34,7 +34,7 @@ namespace core {
/// @param commandName the name of the command used to invoke the status display for this object.
///
TCPServer(EPoll &ePoll, IPAddress address, std::string text = "");
TCPServer(EPoll &ePoll, IPAddress address, std::string delimiter = " ", std::string text = "");
///
/// The destructor for this object.
@@ -87,6 +87,27 @@ namespace core {
void output(TCPSession *session); ///<Output the consoles array to the console.
///
///
///
void sendToAll(std::stringstream &out);
///
/// 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::stringstream &out, TCPSession &sender, SessionFilter filter);
///
/// Use this sendToAll method to output the contents of the out stream
/// to all the connections on the server excluding the sender session
/// and the entries identified by the passed in filter object.
///
void sendToAll(std::stringstream &out, TCPSession &sender);
protected:
///
@@ -108,22 +129,7 @@ namespace core {
/// @param the session object to write the output to.
///
int processCommand(coreutils::ZString command, TCPSession *session, std::stringstream &data) override;
///
/// 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::stringstream &out, TCPSession *sender, SessionFilter &filter);
///
/// Use this sendToAll method to output the contents of the out stream
/// to all the connections on the server excluding the sender session
/// and the entries identified by the passed in filter object.
///
void sendToAll(std::stringstream &out, TCPSession *sender);
int processCommand(coreutils::ZString &request, TCPSession &session) override;
private: