Alot of changes.

This commit is contained in:
Brad Arant 2019-05-21 16:41:07 -07:00
parent f894f3fb66
commit 9c0ea8e559
43 changed files with 697 additions and 79 deletions

View File

@ -46,7 +46,7 @@ namespace core {
/// 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.

View File

@ -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) {
if(command->check(request)) {
command->processCommand(request, session);
return true;
}
if(command->check(request)) {
command->processCommand(request, session, data);
return true;
}
}
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)
session->out << command->getName() << std::endl;
data << command->getName() << std::endl;
}
}

View File

@ -38,9 +38,9 @@ namespace core {
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:
std::vector<Command *> commands;

View File

@ -105,7 +105,7 @@ namespace core {
saveCursor();
setCursorLocation(16, 1);
out << "--> " << request << std::endl;
service.commands.processRequest(request, this);
service.commands.processRequest(request, this, out);
restoreCursor();
send();
}

View File

@ -111,15 +111,15 @@ namespace core {
return epfd;
}
int EPoll::processCommand(std::string command, Session *session) {
int EPoll::processCommand(std::string command, Session *session, std::stringstream &data) {
int sequence = 0;
for(auto threadx : threads) {
session->out << "|" << ++sequence;
session->out << "|" ;
threadx.output(session);
session->out << "|" << std::endl;
data << "|" << ++sequence;
data << "|" ;
threadx.output(data);
data << "|" << std::endl;
}
}

View File

@ -110,7 +110,7 @@ namespace core {
/// @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:

View File

@ -23,6 +23,20 @@ namespace core {
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.
}
}

View File

@ -17,6 +17,9 @@ namespace core {
std::string requestMethod();
std::string requestURL();
std::string requestProtocol();
std::string getPath();
std::string getCGIData();
std::string getCookie(std::string cookie);
private:

1
Release/.d Normal file
View File

@ -0,0 +1 @@

18
Release/Command.cpp.o.d Normal file
View 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:

View 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:

View 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:

View 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
View 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
View 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
View 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
View 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:

View 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
View 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
View 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
View 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
View 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
View 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:

View 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
View 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:

View 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:

View 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:

View 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
View 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
View 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:

View 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
View 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:

View File

@ -47,4 +47,8 @@ void Response::setProtocol(std::string protocol) {
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:
}
}

View File

@ -91,6 +91,8 @@ namespace core {
void addHeaderItem(std::string key, std::string value);
void setCookie(std::string name, std::string value);
private:
std::string protocol;
std::string code;

View File

@ -5,22 +5,22 @@
## Debug
ProjectName :=ServerCore
ConfigurationName :=Debug
WorkspacePath :=/home/barant/Development/BMA/server_core
ProjectPath :=/home/barant/Development/BMA/server_core/ServerCore
WorkspacePath :=/home/barant/barant
ProjectPath :=/home/barant/barant/ServerCore
IntermediateDirectory :=./Debug
OutDir := $(IntermediateDirectory)
CurrentFileName :=
CurrentFilePath :=
CurrentFileFullPath :=
User :=Brad Arant
Date :=04/03/19
User :=
Date :=05/18/19
CodeLitePath :=/home/barant/.codelite
LinkerName :=g++
SharedObjectLinkerName :=g++ -shared -fPIC
LinkerName :=/usr/bin/x86_64-linux-gnu-g++
SharedObjectLinkerName :=/usr/bin/x86_64-linux-gnu-g++ -shared -fPIC
ObjectSuffix :=.o
DependSuffix :=.o.d
PreprocessSuffix :=.o.i
DebugSwitch :=-gstab
PreprocessSuffix :=.i
DebugSwitch :=-g
IncludeSwitch :=-I
LibrarySwitch :=-l
OutputSwitch :=-o
@ -47,13 +47,13 @@ LibPath := $(LibraryPathSwitch).
## Common variables
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
##
AR := ar rcus
CXX := g++
CC := gcc
AR := /usr/bin/x86_64-linux-gnu-ar rcu
CXX := /usr/bin/x86_64-linux-gnu-g++
CC := /usr/bin/x86_64-linux-gnu-gcc
CXXFLAGS := -g $(Preprocessors)
CFLAGS := -g $(Preprocessors)
ASFLAGS :=
AS := as
AS := /usr/bin/x86_64-linux-gnu-as
##
@ -79,8 +79,8 @@ $(OutputFile): $(Objects)
@echo "" > $(IntermediateDirectory)/.d
@echo $(Objects0) > $(ObjectsFileList)
$(AR) $(ArchiveOutputSwitch)$(OutputFile) @$(ObjectsFileList) $(ArLibs)
@$(MakeDirCommand) "/home/barant/Development/BMA/server_core/.build-debug"
@echo rebuilt > "/home/barant/Development/BMA/server_core/.build-debug/ServerCore"
@$(MakeDirCommand) "/home/barant/barant/.build-debug"
@echo rebuilt > "/home/barant/barant/.build-debug/ServerCore"
MakeIntermediateDirs:
@test -d ./Debug || $(MakeDirCommand) ./Debug
@ -96,7 +96,7 @@ PreBuild:
## Objects
##
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(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
$(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
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/Service.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/Service.cpp$(DependSuffix) -MM Service.cpp

View File

@ -12,14 +12,16 @@ namespace core {
void Session::init() {}
void Session::output(Session *session) {
session->out << "|" << ipAddress.getClientAddressAndPort();
void Session::output(std::stringstream &data) {
data << "|" << ipAddress.getClientAddressAndPort();
}
void Session::protocol(std::string data = "") {
if(data.length() > 0)
if(!service.commands.processRequest(data, this))
service.sessionErrorHandler("Invalid data received.", this);
if(data.length() > 0) {
if(!service.commands.processRequest(data, this, out))
service.sessionErrorHandler("Invalid data received.", this);
send();
}
}
void Session::onConnected() {

View File

@ -27,7 +27,7 @@ namespace core {
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

View File

@ -39,14 +39,13 @@ namespace core {
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;
for(auto *sessionx : service.sessions) {
session->out << "|" << ++sequence;
sessionx->output(session);
session->out << "|" << std::endl;
data << "|" << ++sequence;
sessionx->output(data);
data << "|" << std::endl;
}
session->send();
}
}

View File

@ -75,7 +75,7 @@ namespace core {
/// @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:

View File

@ -27,10 +27,10 @@ namespace core {
return count;
}
void Thread::output(Session *session) {
session->out << "|" << getThreadId();
session->out << "|" << getStatus();
session->out << "|" << getCount();
void Thread::output(std::stringstream &data) {
data << "|" << getThreadId();
data << "|" << getStatus();
data << "|" << getCount();
}

View File

@ -33,7 +33,7 @@ namespace core {
std::string getStatus();
pid_t getThreadId();
int getCount();
void output(Session *session);
void output(std::stringstream &data);
private:
EPoll &ePoll; // The EPoll control object.

View File

@ -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;
for(auto *session : sessions) {
out << "|" << ++sequence;
session->output(session);
out << "|" << std::endl;
data << "|" << ++sequence;
session->output(data);
data << "|" << std::endl;
}
session->write(out.str());
}
}

View File

@ -30,7 +30,7 @@ namespace core {
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.