|
|
|
@ -37,7 +37,6 @@ public:
|
|
|
|
void Close(); // close all open sockets
|
|
|
|
void Close(); // close all open sockets
|
|
|
|
void Close(char module); // close a specific module
|
|
|
|
void Close(char module); // close a specific module
|
|
|
|
void Close(int fd); // close a specific file descriptor
|
|
|
|
void Close(int fd); // close a specific file descriptor
|
|
|
|
bool receive(int fd, STCPacket *packet);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// All bool functions, except Server Receive, return true if there was an error
|
|
|
|
// All bool functions, except Server Receive, return true if there was an error
|
|
|
|
bool Send(const STCPacket *packet);
|
|
|
|
bool Send(const STCPacket *packet);
|
|
|
|
@ -46,6 +45,7 @@ public:
|
|
|
|
char GetMod(int fd) const;
|
|
|
|
char GetMod(int fd) const;
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
|
|
|
|
bool receive(int fd, STCPacket *packet);
|
|
|
|
std::vector<struct pollfd> m_Pfd;
|
|
|
|
std::vector<struct pollfd> m_Pfd;
|
|
|
|
std::string m_Modules;
|
|
|
|
std::string m_Modules;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|