Files
oceanbase/deps/ussl-hook/message.h
obdev d6c6e05727 [FEAT MERGE] log4200
Co-authored-by: zhjc1124 <zhjc1124@gmail.com>
Co-authored-by: BinChenn <binchenn.bc@gmail.com>
Co-authored-by: oceanoverflow <oceanoverflow@gmail.com>
2023-05-06 08:15:43 +00:00

25 lines
475 B
C

#ifndef USSL_HOOK_MESSAGE_H
#define USSL_HOOK_MESSAGE_H
#include <stdint.h>
#define NEGOTIATION_MAGIC 0xbeef0312
#define MAX_EXTRA_INFO_LEN 20
#define USSL_BUF_LEN 256
typedef struct negotiation_head_t
{
uint32_t magic;
uint32_t version;
uint32_t len;
} negotiation_head_t;
typedef struct negotiation_message_t
{
int type;
uint64_t client_gid;
} negotiation_message_t;
int send_negotiation_message(int fd, const char *b, int sz);
#endif // USSL_HOOK_MESSAGE_H