netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fd.c File Reference
#include <stdlib.h>
#include <event.h>
#include <stdint.h>
#include <fd.h>
Include dependency graph for fd.c:

Functions

void nft_fd_setup (struct nft_fd *nfd, int fd, void(*cb)(struct nft_fd *fd, uint32_t mask), void *data)
 
void nft_fd_register (struct nft_fd *nfd, uint32_t events)
 
void nft_fd_unregister (struct nft_fd *fd)
 
struct nft_fdnft_fd_alloc (void)
 
void nft_fd_free (struct nft_fd *nfd)
 

Function Documentation

struct nft_fd* nft_fd_alloc ( void  )
void nft_fd_free ( struct nft_fd nfd)
void nft_fd_register ( struct nft_fd nfd,
uint32_t  events 
)

References nft_fd::event, nft_fd::fd, and NULL.

Referenced by tcp_client_start(), and tcp_server_start().

Here is the caller graph for this function:

void nft_fd_setup ( struct nft_fd nfd,
int  fd,
void(*)(struct nft_fd *fd, uint32_t mask cb,
void *  data 
)

References nft_fd::cb, nft_fd::data, data, and nft_fd::fd.

Referenced by tcp_client_start(), and tcp_server_start().

Here is the caller graph for this function:

void nft_fd_unregister ( struct nft_fd fd)

References nft_fd::event, and nft_fd::fd.