Working Version

This commit is contained in:
Brad Arant committed 2021-08-07 11:47:54 -07:00
1 parent 46f98dff69
commit 20d5c99517
10 files changed
+82 -84

No files matched your search

+2 -4
View File
@@ -63,10 +63,8 @@ namespace core {
return new TCPSession(ePoll, *this);
}
void TCPServer::output(TCPSession *session) {
std::stringstream out;
out << "|" << session->ipAddress.getClientAddressAndPort();
session->send();
void TCPServer::output(std::stringstream &out) {
out << "Use the 'help' command to list the commands for this server." << std::endl;
}
int TCPServer::processCommand(coreutils::ZString &request, TCPSession &session) {