X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.h;h=f0eb622c5ac2d62a188092448143a2d95fef0974;hp=476e790dbb73b0d1f439d1663a290e0a811b113b;hb=74cd48ffef90d7d0752e37a4515e4ecfb68f7c9d;hpb=9abb89bcf7940e2ada9d708f86a218a56334f68d diff --git a/server.h b/server.h index 476e790..f0eb622 100644 --- a/server.h +++ b/server.h @@ -47,7 +47,7 @@ public: // and the order between them are undefined. // XXX: header should ideally be ordered with respect to data. void add_client_deferred(int sock); - void add_data_deferred(int stream_index, const char *data, size_t bytes); + void add_data_deferred(int stream_index, const char *data, size_t bytes, StreamStartSuitability suitable_for_stream_start); // These should not be called while running, since that would violate // threading assumptions (ie., that epoll is only called from one thread @@ -127,6 +127,7 @@ private: void construct_error(Client *client, int error_code); void process_queued_data(); + void skip_lost_data(Client *client); void add_client(int sock); };