修改packet_io API的函数命名
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user