⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
src
/
netdata
/
web
/
server
/
h2o
/
View File Name :
connlist.h
// SPDX-License-Identifier: GPL-3.0-or-later #ifndef HTTPD_CONNLIST_H #define HTTPD_CONNLIST_H #include "streaming.h" // (-1) in following macro is to keep conn list + next pointer // be power of 2 #define CONN_LIST_MEMPOOL_SIZE ((2^5)-1) struct conn_list_leaf { h2o_stream_conn_t *conn[CONN_LIST_MEMPOOL_SIZE]; struct conn_list_leaf *next; }; typedef struct { struct conn_list_leaf *head; struct conn_list_leaf *tail; int size; int capacity; pthread_mutex_t lock; } conn_list_t; extern conn_list_t conn_list; void conn_list_insert(conn_list_t *list, h2o_stream_conn_t *conn); void conn_list_iter_all(conn_list_t *list, void (*cb)(h2o_stream_conn_t *conn)); int conn_list_remove_conn(conn_list_t *list, h2o_stream_conn_t *conn); #endif /* HTTPD_CONNLIST_H */