18 lines
275 B
C++
18 lines
275 B
C++
|
#include <server-core.h>
|
||
|
#include <iostream>
|
||
|
|
||
|
class ConsoleApp : public wxApp
|
||
|
{
|
||
|
public:
|
||
|
bool OnInit() override;
|
||
|
};
|
||
|
|
||
|
bool ConsoleApp::OnInit()
|
||
|
{
|
||
|
CServerCore server;
|
||
|
server.Init("127.0.0.1", 9897);
|
||
|
server.Run();
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
wxIMPLEMENT_APP(ConsoleApp);
|