#include <arpa/inet.h>#include <pthread.h>#include <sys/types.h>Go to the source code of this file.
Data Structures | |
| struct | afp_child |
| struct | server_child_t |
Macros | |
| #define | CHILD_HASHSIZE 32 |
Typedefs | |
| typedef struct afp_child | afp_child_t |
Functions | |
| server_child_t * | server_child_alloc (int) |
| afp_child_t * | server_child_add (server_child_t *, pid_t, int ipc_fd) |
| add a child | |
| int | server_child_remove (server_child_t *, pid_t) |
| void | server_child_free (server_child_t *) |
| free everything | |
| afp_child_t * | server_child_resolve (server_child_t *childs, id_t pid) |
| void | server_child_kill (server_child_t *, int) |
| void | server_child_kill_one_by_id (server_child_t *children, pid_t pid, uid_t, uint32_t len, char *id, uint32_t boottime) |
| see if there is a process for the same mac | |
| int | server_child_transfer_session (server_child_t *children, pid_t, uid_t, int, uint16_t) |
| Try to find an old session and pass socket. | |
| void | server_child_handler (server_child_t *) |
| void | server_child_login_done (server_child_t *children, pid_t pid, uid_t) |
| void | server_reset_signal (void) |
useful stuff for child processes. most of this is hidden in server_child.c to ease changes in implementation
| #define CHILD_HASHSIZE 32 |
| typedef struct afp_child afp_child_t |
|
extern |
add a child
|
extern |
initialize server_child structure
|
extern |
free everything
by using a hash table, this increases the cost of this part over a linked list by the size of the hash table
|
extern |
|
extern |
send signal to all child processes
|
extern |
see if there is a process for the same mac
if the times don't match mac has been rebooted
|
extern |
|
extern |
remove a child and free it
|
extern |
|
extern |
Try to find an old session and pass socket.
|
extern |
reset children signals