rename packet_io_loop to stellar_event_base_loop

This commit is contained in:
yangwei
2022-07-20 20:20:31 +08:00
parent da47b80442
commit 6f558132a1
23 changed files with 160 additions and 118 deletions

View File

@@ -3,16 +3,16 @@
#include "plugin_manager.h"
#include "http.h"
struct packet_io_loop_arg
struct stellar_event_base_loop_arg
{
struct packet_io_device *dev;
int thread_id;
};
void packet_io_loop(struct packet_io_loop_arg *arg)
void stellar_event_base_loop(struct stellar_event_base_loop_arg *arg)
{
struct packet *rx_pkt;
struct session_event *event;
struct stellar_packet *rx_pkt;
struct stellar_event *event;
while(1)
{
int fetch_num = packet_io_rx(arg->dev, arg->thread_id, &rx_pkt, 1);
@@ -50,7 +50,7 @@ int main(int argc, char ** argv)
{
//config_manager_init
session_manager_session_event_register(http_decoder, SESSION_TYPE_HTTP);
plugin_session_event_register("HTTP", http_decoder, nullptr);
//packet_io_init
//create_worker_thread