Alot of changes.
This commit is contained in:
parent
f894f3fb66
commit
9c0ea8e559
@ -46,7 +46,7 @@ namespace core {
|
|||||||
/// a non-zero value indicating an error condition.
|
/// a non-zero value indicating an error condition.
|
||||||
///
|
///
|
||||||
|
|
||||||
virtual int processCommand(std::string request, Session *session) = 0;
|
virtual int processCommand(std::string request, Session *session, std::stringstream &data) = 0;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Specify the output that will occur to the specified session.
|
/// Specify the output that will occur to the specified session.
|
||||||
|
@ -16,20 +16,20 @@ namespace core {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CommandList::processRequest(std::string request, Session *session) {
|
bool CommandList::processRequest(std::string request, Session *session, std::stringstream &data) {
|
||||||
|
|
||||||
for(auto *command : commands) {
|
for(auto *command : commands) {
|
||||||
if(command->check(request)) {
|
if(command->check(request)) {
|
||||||
command->processCommand(request, session);
|
command->processCommand(request, session, data);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CommandList::processCommand(std::string request, Session *session) {
|
int CommandList::processCommand(std::string request, Session *session, std::stringstream &data) {
|
||||||
for(Command *command : commands)
|
for(Command *command : commands)
|
||||||
session->out << command->getName() << std::endl;
|
data << command->getName() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -38,9 +38,9 @@ namespace core {
|
|||||||
|
|
||||||
void remove(Command &command);
|
void remove(Command &command);
|
||||||
|
|
||||||
bool processRequest(std::string request, Session *session);
|
bool processRequest(std::string request, Session *session, std::stringstream &data);
|
||||||
|
|
||||||
int processCommand(std::string request, Session *session) override;
|
int processCommand(std::string request, Session *session, std::stringstream &data) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<Command *> commands;
|
std::vector<Command *> commands;
|
||||||
|
@ -105,7 +105,7 @@ namespace core {
|
|||||||
saveCursor();
|
saveCursor();
|
||||||
setCursorLocation(16, 1);
|
setCursorLocation(16, 1);
|
||||||
out << "--> " << request << std::endl;
|
out << "--> " << request << std::endl;
|
||||||
service.commands.processRequest(request, this);
|
service.commands.processRequest(request, this, out);
|
||||||
restoreCursor();
|
restoreCursor();
|
||||||
send();
|
send();
|
||||||
}
|
}
|
||||||
|
10
EPoll.cpp
10
EPoll.cpp
@ -111,15 +111,15 @@ namespace core {
|
|||||||
return epfd;
|
return epfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
int EPoll::processCommand(std::string command, Session *session) {
|
int EPoll::processCommand(std::string command, Session *session, std::stringstream &data) {
|
||||||
|
|
||||||
int sequence = 0;
|
int sequence = 0;
|
||||||
|
|
||||||
for(auto threadx : threads) {
|
for(auto threadx : threads) {
|
||||||
session->out << "|" << ++sequence;
|
data << "|" << ++sequence;
|
||||||
session->out << "|" ;
|
data << "|" ;
|
||||||
threadx.output(session);
|
threadx.output(data);
|
||||||
session->out << "|" << std::endl;
|
data << "|" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
2
EPoll.h
2
EPoll.h
@ -110,7 +110,7 @@ namespace core {
|
|||||||
/// @param session the session to write the requested data to.
|
/// @param session the session to write the requested data to.
|
||||||
///
|
///
|
||||||
|
|
||||||
int processCommand(std::string command, Session *session) override; ///<Output the threads array to the console.
|
int processCommand(std::string command, Session *session, std::stringstream &data) override; ///<Output the threads array to the console.
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
14
Header.cpp
14
Header.cpp
@ -22,6 +22,20 @@ namespace core {
|
|||||||
std::string line1 = data.substr(0, data.find("\r\n"));
|
std::string line1 = data.substr(0, data.find("\r\n"));
|
||||||
return line1.substr(line1.rfind(" ") + 1);
|
return line1.substr(line1.rfind(" ") + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string Header::getPath() {
|
||||||
|
std::string temp = requestURL().substr(requestURL().find('/'));
|
||||||
|
return temp.substr(0, temp.find('?'));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string Header::getCGIData() {
|
||||||
|
return requestURL().substr(requestURL().find('?') + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string Header::getCookie(std::string cookie) {
|
||||||
|
return "";
|
||||||
|
// TODO: Parse the header to retrieve the cookie data.
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
Header.h
3
Header.h
@ -17,6 +17,9 @@ namespace core {
|
|||||||
std::string requestMethod();
|
std::string requestMethod();
|
||||||
std::string requestURL();
|
std::string requestURL();
|
||||||
std::string requestProtocol();
|
std::string requestProtocol();
|
||||||
|
std::string getPath();
|
||||||
|
std::string getCGIData();
|
||||||
|
std::string getCookie(std::string cookie);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
1
Release/.d
Normal file
1
Release/.d
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
18
Release/Command.cpp.o.d
Normal file
18
Release/Command.cpp.o.d
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Release/Command.cpp.o: Command.cpp Command.h includes Object.h Session.h \
|
||||||
|
TCPSocket.h Socket.h IPAddress.h SessionFilter.h
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
21
Release/CommandList.cpp.o.d
Normal file
21
Release/CommandList.cpp.o.d
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Release/CommandList.cpp.o: CommandList.cpp CommandList.h Session.h \
|
||||||
|
TCPSocket.h includes Socket.h Object.h IPAddress.h SessionFilter.h \
|
||||||
|
Command.h
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
40
Release/ConsoleServer.cpp.o.d
Normal file
40
Release/ConsoleServer.cpp.o.d
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
Release/ConsoleServer.cpp.o: ConsoleServer.cpp ConsoleServer.h includes \
|
||||||
|
TCPServerSocket.h Socket.h Object.h TCPSocket.h IPAddress.h Service.h \
|
||||||
|
CommandList.h Session.h SessionFilter.h Command.h EPoll.h Log.h File.h \
|
||||||
|
Thread.h ConsoleSession.h TerminalSession.h
|
||||||
|
|
||||||
|
ConsoleServer.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
TCPServerSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
ConsoleSession.h:
|
||||||
|
|
||||||
|
TerminalSession.h:
|
34
Release/ConsoleSession.cpp.o.d
Normal file
34
Release/ConsoleSession.cpp.o.d
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Release/ConsoleSession.cpp.o: ConsoleSession.cpp ConsoleSession.h \
|
||||||
|
TerminalSession.h includes Session.h TCPSocket.h Socket.h Object.h \
|
||||||
|
IPAddress.h SessionFilter.h TCPServerSocket.h Service.h CommandList.h \
|
||||||
|
Command.h Log.h File.h
|
||||||
|
|
||||||
|
ConsoleSession.h:
|
||||||
|
|
||||||
|
TerminalSession.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
TCPServerSocket.h:
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
29
Release/EPoll.cpp.o.d
Normal file
29
Release/EPoll.cpp.o.d
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
Release/EPoll.cpp.o: EPoll.cpp Thread.h includes Log.h File.h Object.h \
|
||||||
|
Session.h TCPSocket.h Socket.h IPAddress.h SessionFilter.h EPoll.h \
|
||||||
|
Command.h Exception.h
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
Exception.h:
|
12
Release/Exception.cpp.o.d
Normal file
12
Release/Exception.cpp.o.d
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Release/Exception.cpp.o: Exception.cpp Exception.h includes Log.h File.h \
|
||||||
|
Object.h
|
||||||
|
|
||||||
|
Exception.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Object.h:
|
7
Release/File.cpp.o.d
Normal file
7
Release/File.cpp.o.d
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Release/File.cpp.o: File.cpp File.h includes Exception.h
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Exception.h:
|
11
Release/Header.cpp.o.d
Normal file
11
Release/Header.cpp.o.d
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Release/Header.cpp.o: Header.cpp Header.h includes Object.h Log.h File.h
|
||||||
|
|
||||||
|
Header.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
7
Release/IPAddress.cpp.o.d
Normal file
7
Release/IPAddress.cpp.o.d
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Release/IPAddress.cpp.o: IPAddress.cpp IPAddress.h includes Object.h
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
40
Release/Log.cpp.o.d
Normal file
40
Release/Log.cpp.o.d
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
Release/Log.cpp.o: Log.cpp ConsoleSession.h TerminalSession.h includes \
|
||||||
|
Session.h TCPSocket.h Socket.h Object.h IPAddress.h SessionFilter.h \
|
||||||
|
TCPServerSocket.h Service.h CommandList.h Command.h Log.h File.h \
|
||||||
|
ConsoleServer.h EPoll.h Thread.h
|
||||||
|
|
||||||
|
ConsoleSession.h:
|
||||||
|
|
||||||
|
TerminalSession.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
TCPServerSocket.h:
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
ConsoleServer.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Thread.h:
|
12
Release/Response.cpp.o.d
Normal file
12
Release/Response.cpp.o.d
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Release/Response.cpp.o: Response.cpp Response.h includes Object.h Log.h \
|
||||||
|
File.h
|
||||||
|
|
||||||
|
Response.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
27
Release/Service.cpp.o.d
Normal file
27
Release/Service.cpp.o.d
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Release/Service.cpp.o: Service.cpp Service.h Object.h includes \
|
||||||
|
CommandList.h Session.h TCPSocket.h Socket.h IPAddress.h SessionFilter.h \
|
||||||
|
Command.h TCPServerSocket.h Exception.h
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
TCPServerSocket.h:
|
||||||
|
|
||||||
|
Exception.h:
|
27
Release/Session.cpp.o.d
Normal file
27
Release/Session.cpp.o.d
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Release/Session.cpp.o: Session.cpp Session.h TCPSocket.h includes \
|
||||||
|
Socket.h Object.h IPAddress.h SessionFilter.h Log.h File.h Service.h \
|
||||||
|
CommandList.h Command.h
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Command.h:
|
29
Release/Socket.cpp.o.d
Normal file
29
Release/Socket.cpp.o.d
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
Release/Socket.cpp.o: Socket.cpp EPoll.h Log.h includes File.h Object.h \
|
||||||
|
Socket.h Thread.h Session.h TCPSocket.h IPAddress.h SessionFilter.h \
|
||||||
|
Command.h Exception.h
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
Exception.h:
|
36
Release/TCPServerSocket.cpp.o.d
Normal file
36
Release/TCPServerSocket.cpp.o.d
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
Release/TCPServerSocket.cpp.o: TCPServerSocket.cpp TCPServerSocket.h \
|
||||||
|
Socket.h includes Object.h TCPSocket.h IPAddress.h Service.h \
|
||||||
|
CommandList.h Session.h SessionFilter.h Command.h EPoll.h Log.h File.h \
|
||||||
|
Thread.h Exception.h
|
||||||
|
|
||||||
|
TCPServerSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
Exception.h:
|
29
Release/TCPSocket.cpp.o.d
Normal file
29
Release/TCPSocket.cpp.o.d
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
Release/TCPSocket.cpp.o: TCPSocket.cpp TCPSocket.h includes Socket.h \
|
||||||
|
Object.h IPAddress.h EPoll.h Log.h File.h Thread.h Session.h \
|
||||||
|
SessionFilter.h Command.h Exception.h
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
Exception.h:
|
42
Release/TLSServerSocket.cpp.o.d
Normal file
42
Release/TLSServerSocket.cpp.o.d
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
Release/TLSServerSocket.cpp.o: TLSServerSocket.cpp TLSServerSocket.h \
|
||||||
|
Socket.h includes Object.h TCPServerSocket.h TCPSocket.h IPAddress.h \
|
||||||
|
Service.h CommandList.h Session.h SessionFilter.h Command.h TLSSession.h \
|
||||||
|
TLSService.h EPoll.h Log.h File.h Thread.h Exception.h
|
||||||
|
|
||||||
|
TLSServerSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
TCPServerSocket.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
TLSSession.h:
|
||||||
|
|
||||||
|
TLSService.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
Exception.h:
|
42
Release/TLSSession.cpp.o.d
Normal file
42
Release/TLSSession.cpp.o.d
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
Release/TLSSession.cpp.o: TLSSession.cpp TLSSession.h includes Session.h \
|
||||||
|
TCPSocket.h Socket.h Object.h IPAddress.h SessionFilter.h \
|
||||||
|
TLSServerSocket.h TCPServerSocket.h Service.h CommandList.h Command.h \
|
||||||
|
TLSService.h EPoll.h Log.h File.h Thread.h Exception.h
|
||||||
|
|
||||||
|
TLSSession.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
TLSServerSocket.h:
|
||||||
|
|
||||||
|
TCPServerSocket.h:
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
TLSService.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
Exception.h:
|
27
Release/TerminalSession.cpp.o.d
Normal file
27
Release/TerminalSession.cpp.o.d
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Release/TerminalSession.cpp.o: TerminalSession.cpp TerminalSession.h \
|
||||||
|
includes Session.h TCPSocket.h Socket.h Object.h IPAddress.h \
|
||||||
|
SessionFilter.h TCPServerSocket.h Service.h CommandList.h Command.h
|
||||||
|
|
||||||
|
TerminalSession.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
TCPServerSocket.h:
|
||||||
|
|
||||||
|
Service.h:
|
||||||
|
|
||||||
|
CommandList.h:
|
||||||
|
|
||||||
|
Command.h:
|
27
Release/Thread.cpp.o.d
Normal file
27
Release/Thread.cpp.o.d
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Release/Thread.cpp.o: Thread.cpp Thread.h includes Log.h File.h Object.h \
|
||||||
|
Session.h TCPSocket.h Socket.h IPAddress.h SessionFilter.h EPoll.h \
|
||||||
|
Command.h
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Command.h:
|
29
Release/Timer.cpp.o.d
Normal file
29
Release/Timer.cpp.o.d
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
Release/Timer.cpp.o: Timer.cpp Timer.h Socket.h includes Object.h EPoll.h \
|
||||||
|
Log.h File.h Thread.h Session.h TCPSocket.h IPAddress.h SessionFilter.h \
|
||||||
|
Command.h
|
||||||
|
|
||||||
|
Timer.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Thread.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
31
Release/UDPServerSocket.cpp.o.d
Normal file
31
Release/UDPServerSocket.cpp.o.d
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Release/UDPServerSocket.cpp.o: UDPServerSocket.cpp UDPServerSocket.h \
|
||||||
|
Socket.h includes Object.h UDPSocket.h Session.h TCPSocket.h IPAddress.h \
|
||||||
|
SessionFilter.h Command.h EPoll.h Log.h File.h Thread.h
|
||||||
|
|
||||||
|
UDPServerSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
UDPSocket.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
||||||
|
|
||||||
|
Command.h:
|
||||||
|
|
||||||
|
EPoll.h:
|
||||||
|
|
||||||
|
Log.h:
|
||||||
|
|
||||||
|
File.h:
|
||||||
|
|
||||||
|
Thread.h:
|
18
Release/UDPSocket.cpp.o.d
Normal file
18
Release/UDPSocket.cpp.o.d
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Release/UDPSocket.cpp.o: UDPSocket.cpp UDPSocket.h Socket.h includes \
|
||||||
|
Object.h Session.h TCPSocket.h IPAddress.h SessionFilter.h
|
||||||
|
|
||||||
|
UDPSocket.h:
|
||||||
|
|
||||||
|
Socket.h:
|
||||||
|
|
||||||
|
includes:
|
||||||
|
|
||||||
|
Object.h:
|
||||||
|
|
||||||
|
Session.h:
|
||||||
|
|
||||||
|
TCPSocket.h:
|
||||||
|
|
||||||
|
IPAddress.h:
|
||||||
|
|
||||||
|
SessionFilter.h:
|
@ -46,5 +46,9 @@ void Response::setProtocol(std::string protocol) {
|
|||||||
void Response::addHeaderItem(std::string key, std::string value) {
|
void Response::addHeaderItem(std::string key, std::string value) {
|
||||||
header.insert(std::pair<std::string, std::string>(key, value));
|
header.insert(std::pair<std::string, std::string>(key, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Response::setCookie(std::string name, std::string value) {
|
||||||
|
// TODO: Need to format headers with Set-Cookie:
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -91,6 +91,8 @@ namespace core {
|
|||||||
|
|
||||||
void addHeaderItem(std::string key, std::string value);
|
void addHeaderItem(std::string key, std::string value);
|
||||||
|
|
||||||
|
void setCookie(std::string name, std::string value);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string protocol;
|
std::string protocol;
|
||||||
std::string code;
|
std::string code;
|
||||||
|
@ -5,22 +5,22 @@
|
|||||||
## Debug
|
## Debug
|
||||||
ProjectName :=ServerCore
|
ProjectName :=ServerCore
|
||||||
ConfigurationName :=Debug
|
ConfigurationName :=Debug
|
||||||
WorkspacePath :=/home/barant/Development/BMA/server_core
|
WorkspacePath :=/home/barant/barant
|
||||||
ProjectPath :=/home/barant/Development/BMA/server_core/ServerCore
|
ProjectPath :=/home/barant/barant/ServerCore
|
||||||
IntermediateDirectory :=./Debug
|
IntermediateDirectory :=./Debug
|
||||||
OutDir := $(IntermediateDirectory)
|
OutDir := $(IntermediateDirectory)
|
||||||
CurrentFileName :=
|
CurrentFileName :=
|
||||||
CurrentFilePath :=
|
CurrentFilePath :=
|
||||||
CurrentFileFullPath :=
|
CurrentFileFullPath :=
|
||||||
User :=Brad Arant
|
User :=
|
||||||
Date :=04/03/19
|
Date :=05/18/19
|
||||||
CodeLitePath :=/home/barant/.codelite
|
CodeLitePath :=/home/barant/.codelite
|
||||||
LinkerName :=g++
|
LinkerName :=/usr/bin/x86_64-linux-gnu-g++
|
||||||
SharedObjectLinkerName :=g++ -shared -fPIC
|
SharedObjectLinkerName :=/usr/bin/x86_64-linux-gnu-g++ -shared -fPIC
|
||||||
ObjectSuffix :=.o
|
ObjectSuffix :=.o
|
||||||
DependSuffix :=.o.d
|
DependSuffix :=.o.d
|
||||||
PreprocessSuffix :=.o.i
|
PreprocessSuffix :=.i
|
||||||
DebugSwitch :=-gstab
|
DebugSwitch :=-g
|
||||||
IncludeSwitch :=-I
|
IncludeSwitch :=-I
|
||||||
LibrarySwitch :=-l
|
LibrarySwitch :=-l
|
||||||
OutputSwitch :=-o
|
OutputSwitch :=-o
|
||||||
@ -31,7 +31,7 @@ OutputFile :=$(IntermediateDirectory)/lib$(ProjectName).a
|
|||||||
Preprocessors :=
|
Preprocessors :=
|
||||||
ObjectSwitch :=-o
|
ObjectSwitch :=-o
|
||||||
ArchiveOutputSwitch :=
|
ArchiveOutputSwitch :=
|
||||||
PreprocessOnlySwitch :=-E
|
PreprocessOnlySwitch :=-E
|
||||||
ObjectsFileList :="ServerCore.txt"
|
ObjectsFileList :="ServerCore.txt"
|
||||||
PCHCompileFlags :=
|
PCHCompileFlags :=
|
||||||
MakeDirCommand :=mkdir -p
|
MakeDirCommand :=mkdir -p
|
||||||
@ -47,13 +47,13 @@ LibPath := $(LibraryPathSwitch).
|
|||||||
## Common variables
|
## Common variables
|
||||||
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
|
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
|
||||||
##
|
##
|
||||||
AR := ar rcus
|
AR := /usr/bin/x86_64-linux-gnu-ar rcu
|
||||||
CXX := g++
|
CXX := /usr/bin/x86_64-linux-gnu-g++
|
||||||
CC := gcc
|
CC := /usr/bin/x86_64-linux-gnu-gcc
|
||||||
CXXFLAGS := -g $(Preprocessors)
|
CXXFLAGS := -g $(Preprocessors)
|
||||||
CFLAGS := -g $(Preprocessors)
|
CFLAGS := -g $(Preprocessors)
|
||||||
ASFLAGS :=
|
ASFLAGS :=
|
||||||
AS := as
|
AS := /usr/bin/x86_64-linux-gnu-as
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
@ -79,8 +79,8 @@ $(OutputFile): $(Objects)
|
|||||||
@echo "" > $(IntermediateDirectory)/.d
|
@echo "" > $(IntermediateDirectory)/.d
|
||||||
@echo $(Objects0) > $(ObjectsFileList)
|
@echo $(Objects0) > $(ObjectsFileList)
|
||||||
$(AR) $(ArchiveOutputSwitch)$(OutputFile) @$(ObjectsFileList) $(ArLibs)
|
$(AR) $(ArchiveOutputSwitch)$(OutputFile) @$(ObjectsFileList) $(ArLibs)
|
||||||
@$(MakeDirCommand) "/home/barant/Development/BMA/server_core/.build-debug"
|
@$(MakeDirCommand) "/home/barant/barant/.build-debug"
|
||||||
@echo rebuilt > "/home/barant/Development/BMA/server_core/.build-debug/ServerCore"
|
@echo rebuilt > "/home/barant/barant/.build-debug/ServerCore"
|
||||||
|
|
||||||
MakeIntermediateDirs:
|
MakeIntermediateDirs:
|
||||||
@test -d ./Debug || $(MakeDirCommand) ./Debug
|
@test -d ./Debug || $(MakeDirCommand) ./Debug
|
||||||
@ -96,7 +96,7 @@ PreBuild:
|
|||||||
## Objects
|
## Objects
|
||||||
##
|
##
|
||||||
$(IntermediateDirectory)/Command.cpp$(ObjectSuffix): Command.cpp $(IntermediateDirectory)/Command.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Command.cpp$(ObjectSuffix): Command.cpp $(IntermediateDirectory)/Command.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Command.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Command.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Command.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Command.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Command.cpp$(DependSuffix): Command.cpp
|
$(IntermediateDirectory)/Command.cpp$(DependSuffix): Command.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Command.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Command.cpp$(DependSuffix) -MM Command.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Command.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Command.cpp$(DependSuffix) -MM Command.cpp
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ $(IntermediateDirectory)/Command.cpp$(PreprocessSuffix): Command.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Command.cpp$(PreprocessSuffix) Command.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Command.cpp$(PreprocessSuffix) Command.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/ConsoleServer.cpp$(ObjectSuffix): ConsoleServer.cpp $(IntermediateDirectory)/ConsoleServer.cpp$(DependSuffix)
|
$(IntermediateDirectory)/ConsoleServer.cpp$(ObjectSuffix): ConsoleServer.cpp $(IntermediateDirectory)/ConsoleServer.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/ConsoleServer.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/ConsoleServer.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/ConsoleServer.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/ConsoleServer.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/ConsoleServer.cpp$(DependSuffix): ConsoleServer.cpp
|
$(IntermediateDirectory)/ConsoleServer.cpp$(DependSuffix): ConsoleServer.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/ConsoleServer.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/ConsoleServer.cpp$(DependSuffix) -MM ConsoleServer.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/ConsoleServer.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/ConsoleServer.cpp$(DependSuffix) -MM ConsoleServer.cpp
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ $(IntermediateDirectory)/ConsoleServer.cpp$(PreprocessSuffix): ConsoleServer.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/ConsoleServer.cpp$(PreprocessSuffix) ConsoleServer.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/ConsoleServer.cpp$(PreprocessSuffix) ConsoleServer.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/ConsoleSession.cpp$(ObjectSuffix): ConsoleSession.cpp $(IntermediateDirectory)/ConsoleSession.cpp$(DependSuffix)
|
$(IntermediateDirectory)/ConsoleSession.cpp$(ObjectSuffix): ConsoleSession.cpp $(IntermediateDirectory)/ConsoleSession.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/ConsoleSession.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/ConsoleSession.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/ConsoleSession.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/ConsoleSession.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/ConsoleSession.cpp$(DependSuffix): ConsoleSession.cpp
|
$(IntermediateDirectory)/ConsoleSession.cpp$(DependSuffix): ConsoleSession.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/ConsoleSession.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/ConsoleSession.cpp$(DependSuffix) -MM ConsoleSession.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/ConsoleSession.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/ConsoleSession.cpp$(DependSuffix) -MM ConsoleSession.cpp
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ $(IntermediateDirectory)/ConsoleSession.cpp$(PreprocessSuffix): ConsoleSession.c
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/ConsoleSession.cpp$(PreprocessSuffix) ConsoleSession.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/ConsoleSession.cpp$(PreprocessSuffix) ConsoleSession.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/EPoll.cpp$(ObjectSuffix): EPoll.cpp $(IntermediateDirectory)/EPoll.cpp$(DependSuffix)
|
$(IntermediateDirectory)/EPoll.cpp$(ObjectSuffix): EPoll.cpp $(IntermediateDirectory)/EPoll.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/EPoll.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/EPoll.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/EPoll.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/EPoll.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/EPoll.cpp$(DependSuffix): EPoll.cpp
|
$(IntermediateDirectory)/EPoll.cpp$(DependSuffix): EPoll.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/EPoll.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/EPoll.cpp$(DependSuffix) -MM EPoll.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/EPoll.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/EPoll.cpp$(DependSuffix) -MM EPoll.cpp
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ $(IntermediateDirectory)/EPoll.cpp$(PreprocessSuffix): EPoll.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/EPoll.cpp$(PreprocessSuffix) EPoll.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/EPoll.cpp$(PreprocessSuffix) EPoll.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Exception.cpp$(ObjectSuffix): Exception.cpp $(IntermediateDirectory)/Exception.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Exception.cpp$(ObjectSuffix): Exception.cpp $(IntermediateDirectory)/Exception.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Exception.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Exception.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Exception.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Exception.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Exception.cpp$(DependSuffix): Exception.cpp
|
$(IntermediateDirectory)/Exception.cpp$(DependSuffix): Exception.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Exception.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Exception.cpp$(DependSuffix) -MM Exception.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Exception.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Exception.cpp$(DependSuffix) -MM Exception.cpp
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ $(IntermediateDirectory)/Exception.cpp$(PreprocessSuffix): Exception.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Exception.cpp$(PreprocessSuffix) Exception.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Exception.cpp$(PreprocessSuffix) Exception.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/File.cpp$(ObjectSuffix): File.cpp $(IntermediateDirectory)/File.cpp$(DependSuffix)
|
$(IntermediateDirectory)/File.cpp$(ObjectSuffix): File.cpp $(IntermediateDirectory)/File.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/File.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/File.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/File.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/File.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/File.cpp$(DependSuffix): File.cpp
|
$(IntermediateDirectory)/File.cpp$(DependSuffix): File.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/File.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/File.cpp$(DependSuffix) -MM File.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/File.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/File.cpp$(DependSuffix) -MM File.cpp
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ $(IntermediateDirectory)/File.cpp$(PreprocessSuffix): File.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/File.cpp$(PreprocessSuffix) File.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/File.cpp$(PreprocessSuffix) File.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Header.cpp$(ObjectSuffix): Header.cpp $(IntermediateDirectory)/Header.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Header.cpp$(ObjectSuffix): Header.cpp $(IntermediateDirectory)/Header.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Header.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Header.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Header.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Header.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Header.cpp$(DependSuffix): Header.cpp
|
$(IntermediateDirectory)/Header.cpp$(DependSuffix): Header.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Header.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Header.cpp$(DependSuffix) -MM Header.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Header.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Header.cpp$(DependSuffix) -MM Header.cpp
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ $(IntermediateDirectory)/Header.cpp$(PreprocessSuffix): Header.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Header.cpp$(PreprocessSuffix) Header.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Header.cpp$(PreprocessSuffix) Header.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/IPAddress.cpp$(ObjectSuffix): IPAddress.cpp $(IntermediateDirectory)/IPAddress.cpp$(DependSuffix)
|
$(IntermediateDirectory)/IPAddress.cpp$(ObjectSuffix): IPAddress.cpp $(IntermediateDirectory)/IPAddress.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/IPAddress.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/IPAddress.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/IPAddress.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/IPAddress.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/IPAddress.cpp$(DependSuffix): IPAddress.cpp
|
$(IntermediateDirectory)/IPAddress.cpp$(DependSuffix): IPAddress.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/IPAddress.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/IPAddress.cpp$(DependSuffix) -MM IPAddress.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/IPAddress.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/IPAddress.cpp$(DependSuffix) -MM IPAddress.cpp
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ $(IntermediateDirectory)/IPAddress.cpp$(PreprocessSuffix): IPAddress.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/IPAddress.cpp$(PreprocessSuffix) IPAddress.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/IPAddress.cpp$(PreprocessSuffix) IPAddress.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Log.cpp$(ObjectSuffix): Log.cpp $(IntermediateDirectory)/Log.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Log.cpp$(ObjectSuffix): Log.cpp $(IntermediateDirectory)/Log.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Log.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Log.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Log.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Log.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Log.cpp$(DependSuffix): Log.cpp
|
$(IntermediateDirectory)/Log.cpp$(DependSuffix): Log.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Log.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Log.cpp$(DependSuffix) -MM Log.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Log.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Log.cpp$(DependSuffix) -MM Log.cpp
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ $(IntermediateDirectory)/Log.cpp$(PreprocessSuffix): Log.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Log.cpp$(PreprocessSuffix) Log.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Log.cpp$(PreprocessSuffix) Log.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Response.cpp$(ObjectSuffix): Response.cpp $(IntermediateDirectory)/Response.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Response.cpp$(ObjectSuffix): Response.cpp $(IntermediateDirectory)/Response.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Response.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Response.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Response.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Response.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Response.cpp$(DependSuffix): Response.cpp
|
$(IntermediateDirectory)/Response.cpp$(DependSuffix): Response.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Response.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Response.cpp$(DependSuffix) -MM Response.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Response.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Response.cpp$(DependSuffix) -MM Response.cpp
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ $(IntermediateDirectory)/Response.cpp$(PreprocessSuffix): Response.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Response.cpp$(PreprocessSuffix) Response.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Response.cpp$(PreprocessSuffix) Response.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Session.cpp$(ObjectSuffix): Session.cpp $(IntermediateDirectory)/Session.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Session.cpp$(ObjectSuffix): Session.cpp $(IntermediateDirectory)/Session.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Session.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Session.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Session.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Session.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Session.cpp$(DependSuffix): Session.cpp
|
$(IntermediateDirectory)/Session.cpp$(DependSuffix): Session.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Session.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Session.cpp$(DependSuffix) -MM Session.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Session.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Session.cpp$(DependSuffix) -MM Session.cpp
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ $(IntermediateDirectory)/Session.cpp$(PreprocessSuffix): Session.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Session.cpp$(PreprocessSuffix) Session.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Session.cpp$(PreprocessSuffix) Session.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Socket.cpp$(ObjectSuffix): Socket.cpp $(IntermediateDirectory)/Socket.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Socket.cpp$(ObjectSuffix): Socket.cpp $(IntermediateDirectory)/Socket.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Socket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Socket.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Socket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Socket.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Socket.cpp$(DependSuffix): Socket.cpp
|
$(IntermediateDirectory)/Socket.cpp$(DependSuffix): Socket.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Socket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Socket.cpp$(DependSuffix) -MM Socket.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Socket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Socket.cpp$(DependSuffix) -MM Socket.cpp
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ $(IntermediateDirectory)/Socket.cpp$(PreprocessSuffix): Socket.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Socket.cpp$(PreprocessSuffix) Socket.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Socket.cpp$(PreprocessSuffix) Socket.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/TCPServerSocket.cpp$(ObjectSuffix): TCPServerSocket.cpp $(IntermediateDirectory)/TCPServerSocket.cpp$(DependSuffix)
|
$(IntermediateDirectory)/TCPServerSocket.cpp$(ObjectSuffix): TCPServerSocket.cpp $(IntermediateDirectory)/TCPServerSocket.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/TCPServerSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TCPServerSocket.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/TCPServerSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TCPServerSocket.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/TCPServerSocket.cpp$(DependSuffix): TCPServerSocket.cpp
|
$(IntermediateDirectory)/TCPServerSocket.cpp$(DependSuffix): TCPServerSocket.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TCPServerSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TCPServerSocket.cpp$(DependSuffix) -MM TCPServerSocket.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TCPServerSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TCPServerSocket.cpp$(DependSuffix) -MM TCPServerSocket.cpp
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ $(IntermediateDirectory)/TCPServerSocket.cpp$(PreprocessSuffix): TCPServerSocket
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TCPServerSocket.cpp$(PreprocessSuffix) TCPServerSocket.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TCPServerSocket.cpp$(PreprocessSuffix) TCPServerSocket.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/TCPSocket.cpp$(ObjectSuffix): TCPSocket.cpp $(IntermediateDirectory)/TCPSocket.cpp$(DependSuffix)
|
$(IntermediateDirectory)/TCPSocket.cpp$(ObjectSuffix): TCPSocket.cpp $(IntermediateDirectory)/TCPSocket.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/TCPSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TCPSocket.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/TCPSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TCPSocket.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/TCPSocket.cpp$(DependSuffix): TCPSocket.cpp
|
$(IntermediateDirectory)/TCPSocket.cpp$(DependSuffix): TCPSocket.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TCPSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TCPSocket.cpp$(DependSuffix) -MM TCPSocket.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TCPSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TCPSocket.cpp$(DependSuffix) -MM TCPSocket.cpp
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ $(IntermediateDirectory)/TCPSocket.cpp$(PreprocessSuffix): TCPSocket.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TCPSocket.cpp$(PreprocessSuffix) TCPSocket.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TCPSocket.cpp$(PreprocessSuffix) TCPSocket.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Thread.cpp$(ObjectSuffix): Thread.cpp $(IntermediateDirectory)/Thread.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Thread.cpp$(ObjectSuffix): Thread.cpp $(IntermediateDirectory)/Thread.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Thread.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Thread.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Thread.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Thread.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Thread.cpp$(DependSuffix): Thread.cpp
|
$(IntermediateDirectory)/Thread.cpp$(DependSuffix): Thread.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Thread.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Thread.cpp$(DependSuffix) -MM Thread.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Thread.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Thread.cpp$(DependSuffix) -MM Thread.cpp
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ $(IntermediateDirectory)/Thread.cpp$(PreprocessSuffix): Thread.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Thread.cpp$(PreprocessSuffix) Thread.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Thread.cpp$(PreprocessSuffix) Thread.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Timer.cpp$(ObjectSuffix): Timer.cpp $(IntermediateDirectory)/Timer.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Timer.cpp$(ObjectSuffix): Timer.cpp $(IntermediateDirectory)/Timer.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Timer.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Timer.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Timer.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Timer.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Timer.cpp$(DependSuffix): Timer.cpp
|
$(IntermediateDirectory)/Timer.cpp$(DependSuffix): Timer.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Timer.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Timer.cpp$(DependSuffix) -MM Timer.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Timer.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Timer.cpp$(DependSuffix) -MM Timer.cpp
|
||||||
|
|
||||||
@ -224,7 +224,7 @@ $(IntermediateDirectory)/Timer.cpp$(PreprocessSuffix): Timer.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Timer.cpp$(PreprocessSuffix) Timer.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/Timer.cpp$(PreprocessSuffix) Timer.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/TLSServerSocket.cpp$(ObjectSuffix): TLSServerSocket.cpp $(IntermediateDirectory)/TLSServerSocket.cpp$(DependSuffix)
|
$(IntermediateDirectory)/TLSServerSocket.cpp$(ObjectSuffix): TLSServerSocket.cpp $(IntermediateDirectory)/TLSServerSocket.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/TLSServerSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TLSServerSocket.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/TLSServerSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TLSServerSocket.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/TLSServerSocket.cpp$(DependSuffix): TLSServerSocket.cpp
|
$(IntermediateDirectory)/TLSServerSocket.cpp$(DependSuffix): TLSServerSocket.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TLSServerSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TLSServerSocket.cpp$(DependSuffix) -MM TLSServerSocket.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TLSServerSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TLSServerSocket.cpp$(DependSuffix) -MM TLSServerSocket.cpp
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ $(IntermediateDirectory)/TLSServerSocket.cpp$(PreprocessSuffix): TLSServerSocket
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TLSServerSocket.cpp$(PreprocessSuffix) TLSServerSocket.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TLSServerSocket.cpp$(PreprocessSuffix) TLSServerSocket.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/TLSSession.cpp$(ObjectSuffix): TLSSession.cpp $(IntermediateDirectory)/TLSSession.cpp$(DependSuffix)
|
$(IntermediateDirectory)/TLSSession.cpp$(ObjectSuffix): TLSSession.cpp $(IntermediateDirectory)/TLSSession.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/TLSSession.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TLSSession.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/TLSSession.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TLSSession.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/TLSSession.cpp$(DependSuffix): TLSSession.cpp
|
$(IntermediateDirectory)/TLSSession.cpp$(DependSuffix): TLSSession.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TLSSession.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TLSSession.cpp$(DependSuffix) -MM TLSSession.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TLSSession.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TLSSession.cpp$(DependSuffix) -MM TLSSession.cpp
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ $(IntermediateDirectory)/TLSSession.cpp$(PreprocessSuffix): TLSSession.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TLSSession.cpp$(PreprocessSuffix) TLSSession.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TLSSession.cpp$(PreprocessSuffix) TLSSession.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/UDPServerSocket.cpp$(ObjectSuffix): UDPServerSocket.cpp $(IntermediateDirectory)/UDPServerSocket.cpp$(DependSuffix)
|
$(IntermediateDirectory)/UDPServerSocket.cpp$(ObjectSuffix): UDPServerSocket.cpp $(IntermediateDirectory)/UDPServerSocket.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/UDPServerSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/UDPServerSocket.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/UDPServerSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/UDPServerSocket.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/UDPServerSocket.cpp$(DependSuffix): UDPServerSocket.cpp
|
$(IntermediateDirectory)/UDPServerSocket.cpp$(DependSuffix): UDPServerSocket.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/UDPServerSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/UDPServerSocket.cpp$(DependSuffix) -MM UDPServerSocket.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/UDPServerSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/UDPServerSocket.cpp$(DependSuffix) -MM UDPServerSocket.cpp
|
||||||
|
|
||||||
@ -248,7 +248,7 @@ $(IntermediateDirectory)/UDPServerSocket.cpp$(PreprocessSuffix): UDPServerSocket
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/UDPServerSocket.cpp$(PreprocessSuffix) UDPServerSocket.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/UDPServerSocket.cpp$(PreprocessSuffix) UDPServerSocket.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/UDPSocket.cpp$(ObjectSuffix): UDPSocket.cpp $(IntermediateDirectory)/UDPSocket.cpp$(DependSuffix)
|
$(IntermediateDirectory)/UDPSocket.cpp$(ObjectSuffix): UDPSocket.cpp $(IntermediateDirectory)/UDPSocket.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/UDPSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/UDPSocket.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/UDPSocket.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/UDPSocket.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/UDPSocket.cpp$(DependSuffix): UDPSocket.cpp
|
$(IntermediateDirectory)/UDPSocket.cpp$(DependSuffix): UDPSocket.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/UDPSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/UDPSocket.cpp$(DependSuffix) -MM UDPSocket.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/UDPSocket.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/UDPSocket.cpp$(DependSuffix) -MM UDPSocket.cpp
|
||||||
|
|
||||||
@ -256,7 +256,7 @@ $(IntermediateDirectory)/UDPSocket.cpp$(PreprocessSuffix): UDPSocket.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/UDPSocket.cpp$(PreprocessSuffix) UDPSocket.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/UDPSocket.cpp$(PreprocessSuffix) UDPSocket.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/CommandList.cpp$(ObjectSuffix): CommandList.cpp $(IntermediateDirectory)/CommandList.cpp$(DependSuffix)
|
$(IntermediateDirectory)/CommandList.cpp$(ObjectSuffix): CommandList.cpp $(IntermediateDirectory)/CommandList.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/CommandList.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/CommandList.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/CommandList.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/CommandList.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/CommandList.cpp$(DependSuffix): CommandList.cpp
|
$(IntermediateDirectory)/CommandList.cpp$(DependSuffix): CommandList.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/CommandList.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/CommandList.cpp$(DependSuffix) -MM CommandList.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/CommandList.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/CommandList.cpp$(DependSuffix) -MM CommandList.cpp
|
||||||
|
|
||||||
@ -264,7 +264,7 @@ $(IntermediateDirectory)/CommandList.cpp$(PreprocessSuffix): CommandList.cpp
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/CommandList.cpp$(PreprocessSuffix) CommandList.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/CommandList.cpp$(PreprocessSuffix) CommandList.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/TerminalSession.cpp$(ObjectSuffix): TerminalSession.cpp $(IntermediateDirectory)/TerminalSession.cpp$(DependSuffix)
|
$(IntermediateDirectory)/TerminalSession.cpp$(ObjectSuffix): TerminalSession.cpp $(IntermediateDirectory)/TerminalSession.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/TerminalSession.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TerminalSession.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/TerminalSession.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/TerminalSession.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/TerminalSession.cpp$(DependSuffix): TerminalSession.cpp
|
$(IntermediateDirectory)/TerminalSession.cpp$(DependSuffix): TerminalSession.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TerminalSession.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TerminalSession.cpp$(DependSuffix) -MM TerminalSession.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/TerminalSession.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/TerminalSession.cpp$(DependSuffix) -MM TerminalSession.cpp
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ $(IntermediateDirectory)/TerminalSession.cpp$(PreprocessSuffix): TerminalSession
|
|||||||
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TerminalSession.cpp$(PreprocessSuffix) TerminalSession.cpp
|
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/TerminalSession.cpp$(PreprocessSuffix) TerminalSession.cpp
|
||||||
|
|
||||||
$(IntermediateDirectory)/Service.cpp$(ObjectSuffix): Service.cpp $(IntermediateDirectory)/Service.cpp$(DependSuffix)
|
$(IntermediateDirectory)/Service.cpp$(ObjectSuffix): Service.cpp $(IntermediateDirectory)/Service.cpp$(DependSuffix)
|
||||||
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/Development/BMA/server_core/ServerCore/Service.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Service.cpp$(ObjectSuffix) $(IncludePath)
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/home/barant/barant/ServerCore/Service.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/Service.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
$(IntermediateDirectory)/Service.cpp$(DependSuffix): Service.cpp
|
$(IntermediateDirectory)/Service.cpp$(DependSuffix): Service.cpp
|
||||||
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Service.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Service.cpp$(DependSuffix) -MM Service.cpp
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Service.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Service.cpp$(DependSuffix) -MM Service.cpp
|
||||||
|
|
||||||
|
12
Session.cpp
12
Session.cpp
@ -12,14 +12,16 @@ namespace core {
|
|||||||
|
|
||||||
void Session::init() {}
|
void Session::init() {}
|
||||||
|
|
||||||
void Session::output(Session *session) {
|
void Session::output(std::stringstream &data) {
|
||||||
session->out << "|" << ipAddress.getClientAddressAndPort();
|
data << "|" << ipAddress.getClientAddressAndPort();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::protocol(std::string data = "") {
|
void Session::protocol(std::string data = "") {
|
||||||
if(data.length() > 0)
|
if(data.length() > 0) {
|
||||||
if(!service.commands.processRequest(data, this))
|
if(!service.commands.processRequest(data, this, out))
|
||||||
service.sessionErrorHandler("Invalid data received.", this);
|
service.sessionErrorHandler("Invalid data received.", this);
|
||||||
|
send();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::onConnected() {
|
void Session::onConnected() {
|
||||||
|
@ -27,7 +27,7 @@ namespace core {
|
|||||||
|
|
||||||
virtual void init();
|
virtual void init();
|
||||||
|
|
||||||
virtual void output(Session *session);
|
virtual void output(std::stringstream &data);
|
||||||
|
|
||||||
///
|
///
|
||||||
/// The send method is used to output the contents of the out stream
|
/// The send method is used to output the contents of the out stream
|
||||||
|
@ -39,14 +39,13 @@ namespace core {
|
|||||||
return new Session(ePoll, service);
|
return new Session(ePoll, service);
|
||||||
}
|
}
|
||||||
|
|
||||||
int TCPServerSocket::processCommand(std::string command, Session *session) {
|
int TCPServerSocket::processCommand(std::string command, Session *session, std::stringstream &data) {
|
||||||
int sequence = 0;
|
int sequence = 0;
|
||||||
for(auto *sessionx : service.sessions) {
|
for(auto *sessionx : service.sessions) {
|
||||||
session->out << "|" << ++sequence;
|
data << "|" << ++sequence;
|
||||||
sessionx->output(session);
|
sessionx->output(data);
|
||||||
session->out << "|" << std::endl;
|
data << "|" << std::endl;
|
||||||
}
|
}
|
||||||
session->send();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ namespace core {
|
|||||||
/// @param the session object to write the output to.
|
/// @param the session object to write the output to.
|
||||||
///
|
///
|
||||||
|
|
||||||
int processCommand(std::string command, Session *session) override;
|
int processCommand(std::string command, Session *session, std::stringstream &data) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -27,10 +27,10 @@ namespace core {
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Thread::output(Session *session) {
|
void Thread::output(std::stringstream &data) {
|
||||||
session->out << "|" << getThreadId();
|
data << "|" << getThreadId();
|
||||||
session->out << "|" << getStatus();
|
data << "|" << getStatus();
|
||||||
session->out << "|" << getCount();
|
data << "|" << getCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
2
Thread.h
2
Thread.h
@ -33,7 +33,7 @@ namespace core {
|
|||||||
std::string getStatus();
|
std::string getStatus();
|
||||||
pid_t getThreadId();
|
pid_t getThreadId();
|
||||||
int getCount();
|
int getCount();
|
||||||
void output(Session *session);
|
void output(std::stringstream &data);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
EPoll &ePoll; // The EPoll control object.
|
EPoll &ePoll; // The EPoll control object.
|
||||||
|
@ -44,18 +44,16 @@ namespace core {
|
|||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
int UDPServerSocket::processCommand(Session *session) {
|
int UDPServerSocket::processCommand(std::string request, std::stringstream &data) {
|
||||||
|
|
||||||
std::stringstream out;
|
|
||||||
int sequence = 0;
|
int sequence = 0;
|
||||||
|
|
||||||
for(auto *session : sessions) {
|
for(auto *session : sessions) {
|
||||||
out << "|" << ++sequence;
|
data << "|" << ++sequence;
|
||||||
session->output(session);
|
session->output(data);
|
||||||
out << "|" << std::endl;
|
data << "|" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
session->write(out.str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ namespace core {
|
|||||||
|
|
||||||
void onDataReceived(std::string data) override;
|
void onDataReceived(std::string data) override;
|
||||||
|
|
||||||
int processCommand(Session *session);
|
int processCommand(std::string request, std::stringstream &data);
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
// The retrieved socket connections are placed into the client vector list.
|
// The retrieved socket connections are placed into the client vector list.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user