TCPSession2 is gone. publish commands are gone but usable if you put them in your server.

This commit is contained in:
Brad Arant committed 2024-07-30 16:22:36 -07:00
1 parent a391882541
commit e9cf447512
3 files changed
-163

No files matched your search

-8
View File
@@ -9,14 +9,6 @@ namespace core {
TCPServer::TCPServer(EPoll &ePoll, IPAddress address, std::string delimiter, int depth, std::string text)
: TCPSocket(ePoll, text), commands(delimiter, depth) {
// commands.add(subscriptions, "publish"); // This needs to be removed and put into the servers that
// commands.add(subscriptions, "unpublish"); // Others make. Plus it should be in a manager object that
// commands.add(subscriptions, "subscribe"); // encapsulates all of the function.
// commands.add(subscriptions, "unsubscribe");
// commands.add(subscriptions, "catalog");
// commands.add(subscriptions, "event");
// commands.add(subscriptions, "invite");
setDescriptor(socket(AF_INET, SOCK_STREAM, 0));
int yes = 1;
setsockopt(getDescriptor(), SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int));