ServerPool(int num_servers);
~ServerPool();
- // Accessor. Only to be used in rare situations, really.
- // The ServerPool retains ownership.
- Server *get_server(int num) { return &servers[num]; }
+ // Fills streams() and clients().
+ CubemapStateProto serialize();
// Picks a server (round-robin) and allocates the given client to it.
void add_client(int sock);