websock start
This commit is contained in:
parent
bd35d65efc
commit
364c96e5b2
9 changed files with 47 additions and 25 deletions
|
@ -4,7 +4,7 @@ project(server)
|
|||
file(GLOB_RECURSE server_src
|
||||
"src/*.hpp"
|
||||
"src/*.cpp"
|
||||
)
|
||||
)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -static")
|
||||
|
|
2
server/src/sock/gamesock.cpp
Normal file
2
server/src/sock/gamesock.cpp
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "gamesock.hpp"
|
||||
|
22
server/src/sock/gamesock.hpp
Normal file
22
server/src/sock/gamesock.hpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef SOSC_GAMESOCK_H
|
||||
#define SOSC_GAMESOCK_H
|
||||
|
||||
#include "tcpsock.hpp"
|
||||
|
||||
namespace sosc {
|
||||
class GameConnection {
|
||||
public:
|
||||
|
||||
private:
|
||||
sosc::TcpClient client;
|
||||
};
|
||||
|
||||
class GameServer {
|
||||
public:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
2
server/src/sock/intrasock.cpp
Normal file
2
server/src/sock/intrasock.cpp
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "intrasock.hpp"
|
||||
|
20
server/src/sock/intrasock.hpp
Normal file
20
server/src/sock/intrasock.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef SOSC_INTSOCK_H
|
||||
#define SOSC_INTSOCK_H
|
||||
|
||||
namespace sosc {
|
||||
class IntraConnection {
|
||||
public:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
class IntraServer {
|
||||
public:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
#ifndef SOSC_RAWSOCK_H
|
||||
#define SOSC_RAWSOCK_H
|
||||
|
||||
|
||||
|
||||
#endif
|
|
@ -1 +0,0 @@
|
|||
#include "websock.hpp"
|
|
@ -1,16 +0,0 @@
|
|||
#ifndef SOSC_WEBSOCK_H
|
||||
#define SOSC_WEBSOCK_H
|
||||
|
||||
#include "tcpsock.hpp"
|
||||
|
||||
namespace sosc {
|
||||
class WebSocketClient {
|
||||
|
||||
};
|
||||
|
||||
class WebSocketServer {
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue