-
Notifications
You must be signed in to change notification settings - Fork 0
/
libplayer.h
36 lines (27 loc) · 873 Bytes
/
libplayer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Created by clarkzjw on 11/9/22.
//
#ifndef PLAYER_CLIENT_H
#define PLAYER_CLIENT_H
#include "picoquic_config.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct picoquic_download_stat {
double time;
double throughput;
uint64_t rtt;
uint64_t one_way_delay_avg;
uint64_t bandwidth_estimate;
uint64_t total_bytes_lost;
uint64_t total_received;
uint64_t data_received;
}picoquic_download_stat;
int quic_client(const char* ip_address_text, int server_port,
picoquic_quic_config_t* config, int force_migration,
int nb_packets_before_key_update, char const* client_scenario_text, const char* if_name, struct picoquic_download_stat* stat);
int download_segment(char *_host, int _port, char *_filename, char *_if_name, const char *_dir, picoquic_download_stat *stat);
#ifdef __cplusplus
}
#endif
#endif // PLAYER_CLIENT_H