Server implementation of streaming a video file in C