blob: f7f1e71db045b25885d0b9cd53ff7b44fefcdda7 [file] [log] [blame]
liubin281ac462023-07-19 14:22:54 +08001#ifndef MBTK_SOCK_INTERNAL_INCLUDE
2#define MBTK_SOCK_INTERNAL_INCLUDE
3#include "mbtk_sock2.h"
yq.wang39b54a22025-04-11 15:25:50 +08004
5#ifdef MBTK_OPENSSL_V3_0_0_SUPPORT
6#include "mbtk_openssl.h"
7#endif
liubin281ac462023-07-19 14:22:54 +08008
9#define MBTK_HANDLE_MAX_NUM 5
10#define MBTK_SOCK_MAX_NUM 10
11
12typedef struct {
13 int fd;
b.liu8181e142023-09-26 10:31:10 +080014 mbtk_sock_type type; // socket type:TCP or UDP
yq.wang39b54a22025-04-11 15:25:50 +080015#ifdef MBTK_OPENSSL_V3_0_0_SUPPORT
16 mbtk_openssl_info_s ssl_info;
b.liudeb8e422024-12-14 17:36:56 +080017#endif
liubin281ac462023-07-19 14:22:54 +080018} mbtk_sock_inter_info_s;
19
20typedef struct {
21 mbtk_init_info init_info;
22 int sock_num;
23 mbtk_sock_inter_info_s inter_infos[MBTK_SOCK_MAX_NUM];
24 mbtk_sock_info infos[MBTK_SOCK_MAX_NUM];
25} mbtk_sock_s;
liubin281ac462023-07-19 14:22:54 +080026
luojin8fbb3432023-10-18 09:47:46 +080027#endif /* MBTK_SOCK_INTERNAL_INCLUDE */