Removed singleton pattern
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ int main(int argc, char** argv) {
|
||||
try {
|
||||
ServerApplication app;
|
||||
app.Init(argc, argv);
|
||||
app.Loop();
|
||||
app.Proc();
|
||||
app.Quit();
|
||||
}
|
||||
catch(exception& e) {
|
||||
|
||||
@@ -97,7 +97,7 @@ void ServerApplication::Init(int argc, char** argv) {
|
||||
//
|
||||
}
|
||||
|
||||
void ServerApplication::Loop() {
|
||||
void ServerApplication::Proc() {
|
||||
SerialPacket packet;
|
||||
while(running) {
|
||||
//suck in the waiting packets & process them
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
~ServerApplication() = default;
|
||||
|
||||
void Init(int argc, char** argv);
|
||||
void Loop();
|
||||
void Proc();
|
||||
void Quit();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user