perror("epoll_ctl(EPOLL_CTL_ADD)");
exit(1);
}
+
+ process_client(&clients[client.sock()]);
}
void Server::add_stream(const string &stream_id)
}
client->stream_id = request_tokens[1];
- client->stream = streams[client->stream_id];
+ client->stream = find_stream(client->stream_id);
client->request.clear();
return 200; // OK!