diff options
author | Alexander Tkachev | 2016-06-15 21:36:20 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 6126435b64442ae838953e095191230737391dca (patch) | |
tree | 23f640819ee8b187cbf7358947e82d3be2267825 /backends/networking/sdl_net/localwebserver.h | |
parent | 0af97e59bc63538d18d2241285b68ed287ccd87c (diff) | |
download | scummvm-rg350-6126435b64442ae838953e095191230737391dca.tar.gz scummvm-rg350-6126435b64442ae838953e095191230737391dca.tar.bz2 scummvm-rg350-6126435b64442ae838953e095191230737391dca.zip |
CLOUD: Add Networking::Client
Keeps current client's state
Diffstat (limited to 'backends/networking/sdl_net/localwebserver.h')
-rw-r--r-- | backends/networking/sdl_net/localwebserver.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/networking/sdl_net/localwebserver.h b/backends/networking/sdl_net/localwebserver.h index a11be0a938..8db05f72e1 100644 --- a/backends/networking/sdl_net/localwebserver.h +++ b/backends/networking/sdl_net/localwebserver.h @@ -23,6 +23,7 @@ #ifndef BACKENDS_NETWORKING_SDL_NET_LOCALWEBSERVER_H #define BACKENDS_NETWORKING_SDL_NET_LOCALWEBSERVER_H +#include "backends/networking/sdl_net/client.h" #include "common/singleton.h" #include "common/scummsys.h" @@ -41,13 +42,15 @@ class LocalWebserver : public Common::Singleton<LocalWebserver> { SDLNet_SocketSet _set; TCPsocket _serverSocket; - TCPsocket _clientSocket[MAX_CONNECTIONS]; + Client _client[MAX_CONNECTIONS]; int _clients; bool _timerStarted; void startTimer(int interval = TIMER_INTERVAL); void stopTimer(); void handle(); + void handleClient(uint32 i); + void acceptClient(); public: LocalWebserver(); |