rename packet_io_loop to stellar_event_base_loop
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user