修改packet_io API的函数命名

This commit is contained in:
luwenpeng
2023-11-29 09:52:20 +08:00
parent a647684704
commit 23dbb7720c
9 changed files with 26 additions and 26 deletions

View File

@@ -59,13 +59,13 @@ void packet_io_destory(struct packet_io *handle);
// return 0 for success
// return -1 for error
int packet_io_thread_init(struct packet_io *handle, struct thread_ctx *thread_ctx);
void packet_io_thread_wait(struct packet_io *handle, struct thread_ctx *thread_ctx, int timeout_ms);
int packet_io_init(struct packet_io *handle, struct thread_ctx *thread_ctx);
void packet_io_wait(struct packet_io *handle, struct thread_ctx *thread_ctx, int timeout_ms);
// return n_packet_recved
int packet_io_thread_polling_nf(struct packet_io *handle, struct thread_ctx *thread_ctx);
int packet_io_thread_polling_endpoint_l3(struct packet_io *handle, struct thread_ctx *thread_ctx);
int packet_io_thread_polling_endpoint_l2(struct packet_io *handle, struct thread_ctx *thread_ctx);
int packet_io_polling_nf(struct packet_io *handle, struct thread_ctx *thread_ctx);
int packet_io_polling_endpoint_l3(struct packet_io *handle, struct thread_ctx *thread_ctx);
int packet_io_polling_endpoint_l2(struct packet_io *handle, struct thread_ctx *thread_ctx);
#ifdef __cpluscplus
}