41 lines
605 B
C++
41 lines
605 B
C++
#ifndef __ConsoleServer_h__
|
|
#define __ConsoleServer_h__
|
|
|
|
#include "includes"
|
|
#include "TCPServer.h"
|
|
#include "Command.h"
|
|
#include "EPoll.h"
|
|
|
|
namespace core {
|
|
|
|
class TCPSocket;
|
|
class TCPSession;
|
|
|
|
///
|
|
///
|
|
///
|
|
|
|
class ConsoleServer : public TCPServer, coreutils::LogListener {
|
|
|
|
public:
|
|
|
|
//
|
|
//
|
|
//
|
|
|
|
ConsoleServer(EPoll &ePoll, IPAddress address);
|
|
|
|
//
|
|
//
|
|
//
|
|
|
|
void logSend(std::string out) override;
|
|
|
|
TCPSession * getSocketAccept(EPoll &ePoll) override;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|