22 #ifndef BACKENDS_NETWORKING_SDL_NET_CLIENT_H 23 #define BACKENDS_NETWORKING_SDL_NET_CLIENT_H 25 #include "backends/networking/sdl_net/reader.h" 26 #include "common/str.h" 29 class MemoryReadWriteStream;
32 typedef struct _SDLNet_SocketSet *SDLNet_SocketSet;
33 typedef struct _TCPsocket *TCPsocket;
47 #define CLIENT_BUFFER_SIZE 1 * 1024 * 1024 52 virtual void handle(
Client *client) = 0;
77 SDLNet_SocketSet _set;
84 bool readMoreIfNeeded();
88 Client(SDLNet_SocketSet
set, TCPsocket socket);
91 void open(SDLNet_SocketSet
set, TCPsocket socket);
101 ClientState state()
const;
109 bool noMoreContent()
const;
118 bool socketIsReady();
119 int recv(
void *data,
int maxlen);
120 int send(
void *data,
int len);
Definition: scummvmcloud.h:31
Definition: algorithm.h:29
Definition: memstream.h:283