class ClientProto;
class CubemapStateProto;
+class Stream;
class StreamProto;
struct Client {
Client(int sock);
// Serialization/deserialization.
- Client(const ClientProto &serialized);
+ Client(const ClientProto &serialized, Stream *stream);
ClientProto serialize() const;
// The file descriptor associated with this socket.
// What stream we're connecting to; parsed from <request>.
// Not relevant for READING_REQUEST.
std::string stream_id;
+ Stream *stream;
// The header we want to send. This is nominally a copy of Stream::header,
// but since that might change on reconnects etc., we keep a local copy here.