Data Structures | |
struct | local_conf |
struct | local_server |
Macros | |
#define | UNIX_PATH_MAX 108 |
#define | LOCAL_RET_ERROR -1 |
#define | LOCAL_RET_OK 0 |
#define | LOCAL_RET_STOLEN 1 |
Functions | |
int | local_server_create (struct local_server *server, struct local_conf *conf) |
void | local_server_destroy (struct local_server *server) |
int | do_local_server_step (struct local_server *server, void *data, int(*process)(int fd, void *data)) |
int | local_client_create (struct local_conf *conf) |
void | local_client_destroy (int fd) |
int | do_local_client_step (int fd, void(*process)(char *buf)) |
int | do_local_request (int, struct local_conf *, void(*step)(char *buf)) |
void | local_step (char *buf) |
#define LOCAL_RET_ERROR -1 |
Referenced by ctnl_local().
#define LOCAL_RET_OK 0 |
Referenced by cthelper_local(), and ctnl_local().
#define LOCAL_RET_STOLEN 1 |
Referenced by do_local_server_step().
#define UNIX_PATH_MAX 108 |
int do_local_client_step | ( | int | fd, |
void(*)(char *buf) | process | ||
) |
int do_local_request | ( | int | , |
struct local_conf * | , | ||
void(*)(char *buf) | step | ||
) |
References do_local_client_step(), local_client_create(), and local_client_destroy().
Referenced by main().
int do_local_server_step | ( | struct local_server * | server, |
void * | data, | ||
int(*)(int fd, void *data) | process | ||
) |
References local_server::fd, and LOCAL_RET_STOLEN.
int local_client_create | ( | struct local_conf * | conf | ) |
References len, and local_conf::path.
Referenced by do_local_request().
void local_client_destroy | ( | int | fd | ) |
int local_server_create | ( | struct local_server * | server, |
struct local_conf * | conf | ||
) |
References local_conf::backlog, local_server::fd, len, local_conf::path, local_server::path, and local_conf::reuseaddr.
Referenced by init().
void local_server_destroy | ( | struct local_server * | server | ) |
References local_server::fd, and local_server::path.
Referenced by killer().
void local_step | ( | char * | buf | ) |