diff options
author | Alexander Tkachev | 2016-07-07 18:04:48 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | f91bb39192cd11a0cb30a39bfb630d2fd9fad89e (patch) | |
tree | ab07ff6532d41c97fc5f970eda219586bdaed02a /backends/networking/sdl_net/client.h | |
parent | 589b4cd45741ff73ba2d1260a14a14351cfba914 (diff) | |
download | scummvm-rg350-f91bb39192cd11a0cb30a39bfb630d2fd9fad89e.tar.gz scummvm-rg350-f91bb39192cd11a0cb30a39bfb630d2fd9fad89e.tar.bz2 scummvm-rg350-f91bb39192cd11a0cb30a39bfb630d2fd9fad89e.zip |
CLOUD: Use Reader in Client
Instead of copy-pasting it I'm just "integrating" it in.
Diffstat (limited to 'backends/networking/sdl_net/client.h')
-rw-r--r-- | backends/networking/sdl_net/client.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/backends/networking/sdl_net/client.h b/backends/networking/sdl_net/client.h index eba5dabfba..a54f72ae2b 100644 --- a/backends/networking/sdl_net/client.h +++ b/backends/networking/sdl_net/client.h @@ -25,6 +25,7 @@ #include "common/scummsys.h" #include "common/str.h" +#include "reader.h" typedef struct _SDLNet_SocketSet *SDLNet_SocketSet; typedef struct _TCPsocket *TCPsocket; @@ -51,14 +52,11 @@ class Client { ClientState _state; SDLNet_SocketSet _set; TCPsocket _socket; + Reader _reader; Common::String _headers; Common::String _method, _path, _query, _anchor; ClientHandler *_handler; - void checkIfHeadersEnded(); - void checkIfBadRequest(); - void parsePathQueryAndAnchor(Common::String path); - public: Client(); Client(SDLNet_SocketSet set, TCPsocket socket); |