mirror of
https://github.com/EndPositive/slipstream.git
synced 2025-10-08 12:25:04 +00:00
35 lines
1,020 B
C
35 lines
1,020 B
C
#ifndef SLIPSTREAM_H
|
|
#define SLIPSTREAM_H
|
|
/* Header file for the picoquic sample project.
|
|
* It contains the definitions common to client and server */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define SLIPSTREAM_ALPN "picoquic_sample"
|
|
#define SLIPSTREAM_SNI "test.example.com"
|
|
|
|
#define SLIPSTREAM_NO_ERROR 0
|
|
#define SLIPSTREAM_INTERNAL_ERROR 0x101
|
|
#define SLIPSTREAM_FILE_CANCEL_ERROR 0x105
|
|
|
|
#define SLIPSTREAM_QLOG_DIR "./qlog";
|
|
#include <stdbool.h>
|
|
|
|
typedef struct st_address_t {
|
|
struct sockaddr_storage server_address;
|
|
bool added;
|
|
} address_t;
|
|
|
|
int picoquic_slipstream_client(int listen_port, struct st_address_t* server_addresses, size_t server_address_count, const char* domain_name,
|
|
const char* cc_algo_id, bool gso, size_t keep_alive_interval);
|
|
|
|
int picoquic_slipstream_server(int server_port, const char* pem_cert, const char* pem_key,
|
|
struct sockaddr_storage* target_address, const char* domain_name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|