feat: add history and lastest different version test stage; decoder result use struct iovec.
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include <bits/types/struct_iovec.h>
|
||||
|
||||
typedef struct iovec qstring;
|
||||
|
||||
enum quic_message_type
|
||||
{
|
||||
@@ -23,16 +26,10 @@ enum quic_message_type
|
||||
struct quic_message;
|
||||
enum quic_message_type quic_message_type_get(const struct quic_message *msg);
|
||||
|
||||
struct qstring
|
||||
{
|
||||
const char *str;
|
||||
size_t str_len;
|
||||
};
|
||||
|
||||
void quic_message_get_version(const struct quic_message *msg, unsigned int *result);
|
||||
void quic_message_get_sni(const struct quic_message *msg, struct qstring *result);
|
||||
void quic_message_get_user_agent(const struct quic_message *msg, struct qstring *result);
|
||||
void quic_message_get_payload(const struct quic_message *msg, struct qstring *result);
|
||||
void quic_message_get_sni(const struct quic_message *msg, struct iovec *result);
|
||||
void quic_message_get_user_agent(const struct quic_message *msg, struct iovec *result);
|
||||
void quic_message_get_payload(const struct quic_message *msg, struct iovec *result);
|
||||
|
||||
int quic_version_int2string(unsigned int version, char *buff, int buff_len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user