std::string url;
int sock;
std::string remote_addr;
- time_t connect_time;
+ timespec connect_time;
size_t bytes_sent;
size_t bytes_lost;
size_t num_loss_events;
// The file descriptor associated with this socket.
int sock;
+ // When the client connected, in terms of CLOCK_MONOTONIC_COARSE.
+ timespec connect_time;
+
// Some information only used for logging.
std::string remote_addr;
- time_t connect_time;
enum State { READING_REQUEST, SENDING_HEADER, SENDING_DATA, SENDING_ERROR, WAITING_FOR_KEYFRAME, PREBUFFERING };
State state;