diff options
author | Alexander Tkachev | 2016-07-09 16:10:58 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 7fcdcc10cb8f6dad370e942ef917ff00e888e2ec (patch) | |
tree | 257b8461c2576bca902a6514b39a1990ac1e395e /backends/networking/sdl_net/client.cpp | |
parent | abae5c437142b53d9099653fe5f14b3ac1967b18 (diff) | |
download | scummvm-rg350-7fcdcc10cb8f6dad370e942ef917ff00e888e2ec.tar.gz scummvm-rg350-7fcdcc10cb8f6dad370e942ef917ff00e888e2ec.tar.bz2 scummvm-rg350-7fcdcc10cb8f6dad370e942ef917ff00e888e2ec.zip |
CLOUD: Cleanup in UploadFileClientHandler
Adds Client::noMoreContent() and Reader::noMoreContent(), which return
true when whole client's request was read.
Diffstat (limited to 'backends/networking/sdl_net/client.cpp')
-rw-r--r-- | backends/networking/sdl_net/client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/networking/sdl_net/client.cpp b/backends/networking/sdl_net/client.cpp index 89b50faf86..ef46e81815 100644 --- a/backends/networking/sdl_net/client.cpp +++ b/backends/networking/sdl_net/client.cpp @@ -164,6 +164,8 @@ Common::String Client::attachedFile(Common::String name) const { return _reader. Common::String Client::anchor() const { return _reader.anchor(); } +bool Client::noMoreContent() const { return _reader.noMoreContent(); } + bool Client::socketIsReady() { return SDLNet_SocketReady(_socket); } int Client::recv(void *data, int maxlen) { return SDLNet_TCP_Recv(_socket, data, maxlen); } |