| #ifndef MBTK_SOCK_INTERNAL_INCLUDE |
| #define MBTK_SOCK_INTERNAL_INCLUDE |
| #include "mbtk_sock2.h" |
| |
| #ifdef MBTK_OPENSSL_V3_0_0_SUPPORT |
| #include "mbtk_openssl.h" |
| #endif |
| |
| #define MBTK_HANDLE_MAX_NUM 5 |
| #define MBTK_SOCK_MAX_NUM 10 |
| |
| typedef struct { |
| int fd; |
| mbtk_sock_type type; // socket type:TCP or UDP |
| #ifdef MBTK_OPENSSL_V3_0_0_SUPPORT |
| mbtk_openssl_info_s ssl_info; |
| #endif |
| } mbtk_sock_inter_info_s; |
| |
| typedef struct { |
| mbtk_init_info init_info; |
| int sock_num; |
| mbtk_sock_inter_info_s inter_infos[MBTK_SOCK_MAX_NUM]; |
| mbtk_sock_info infos[MBTK_SOCK_MAX_NUM]; |
| } mbtk_sock_s; |
| |
| #endif /* MBTK_SOCK_INTERNAL_INCLUDE */ |