20 lines
420 B
C
20 lines
420 B
C
|
|
#ifndef _PACKET_IO_H
|
||
|
|
#define _PACKET_IO_H
|
||
|
|
|
||
|
|
#ifdef __cpluscplus
|
||
|
|
extern "C"
|
||
|
|
{
|
||
|
|
#endif
|
||
|
|
|
||
|
|
struct packet_io *packet_io_create(const char *profile, int thread_num);
|
||
|
|
void packet_io_destory(struct packet_io *handle);
|
||
|
|
|
||
|
|
int packet_io_polling_nf_interface(struct packet_io *handle, int thread_seq, void *ctx);
|
||
|
|
int packet_io_polling_endpoint(struct packet_io *handle, int thread_seq, void *ctx);
|
||
|
|
|
||
|
|
#ifdef __cpluscplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|