#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <signal.h>#include <unistd.h>#include <sys/types.h>#include <sys/time.h>#include <sys/uio.h>#include <sys/socket.h>#include <sys/param.h>#include <sys/wait.h>#include <netatalk/at.h>#include <atalk/logger.h>#include <atalk/compat.h>#include <atalk/atp.h>#include <atalk/asp.h>#include <atalk/server_child.h>#include <atalk/util.h>#include "asp_child.h"Macros | |
| #define | WEXITSTATUS(stat_val) |
| #define | WIFEXITED(stat_val) |
Functions | |
| static void | tickle_handler (int sig) |
| send tickles and check tickle status of connections | |
| void | asp_kill (int sig) |
| void | asp_stop_tickle (void) |
| static void | set_asp_ac (int sid, struct asp_child *tmp) |
| ASP | asp_getsession (ASP asp, server_child_t *server_children, const int tickleval) |
| This call handles open, tickle, and getstatus requests. | |
Variables | |
| static ASP | server_asp |
| static server_child_t * | children = NULL |
| static struct asp_child ** | asp_ac = NULL |
| #define WEXITSTATUS | ( | stat_val | ) |
| #define WIFEXITED | ( | stat_val | ) |
| ASP asp_getsession | ( | ASP | asp, |
| server_child_t * | server_children, | ||
| const int | tickleval ) |
This call handles open, tickle, and getstatus requests.
| void asp_kill | ( | int | sig | ) |
kill children
| void asp_stop_tickle | ( | void | ) |
|
static |
|
static |
send tickles and check tickle status of connections
thoughts on using a hashed list:
if setup for a large number of connections:
|
static |
|
static |
|
static |