#include <errno.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <time.h>
#include <unistd.h>
#include <atalk/dsi.h>
#include <atalk/errchk.h>
#include <atalk/globals.h>
#include <atalk/logger.h>
#include <atalk/server_child.h>
#include <atalk/server_ipc.h>
#include <atalk/util.h>
Data Structures | |
struct | ipc_header |
Macros | |
#define | IPC_HEADERLEN 14 |
#define | IPC_MAXMSGSIZE 90 |
Typedefs | |
typedef struct ipc_header | ipc_header_t |
Functions | |
static int | ipc_kill_token (struct ipc_header *ipc, server_child_t *children) |
static int | ipc_get_session (struct ipc_header *ipc, server_child_t *children) |
static int | ipc_login_done (const struct ipc_header *ipc, server_child_t *children) |
static int | ipc_set_state (struct ipc_header *ipc, server_child_t *children) |
static int | ipc_set_volumes (struct ipc_header *ipc, server_child_t *children) |
int | ipc_server_read (server_child_t *children, int fd) |
int | ipc_child_write (int fd, uint16_t command, int len, void *msg) |
int | ipc_child_state (AFPObj *obj, uint16_t state) |
Variables | |
static char * | ipc_cmd_str [] |
#define IPC_HEADERLEN 14 |
#define IPC_MAXMSGSIZE 90 |
typedef struct ipc_header ipc_header_t |
int ipc_child_state | ( | AFPObj * | obj, |
uint16_t | state ) |
int ipc_child_write | ( | int | fd, |
uint16_t | command, | ||
int | len, | ||
void * | msg ) |
|
static |
|
static |
|
static |
int ipc_server_read | ( | server_child_t * | children, |
int | fd ) |
Read a IPC message from a child
This is using an fd with non-blocking IO, so EAGAIN is not an error
children | (rw) pointer to our structure with all childs |
fd | (r) IPC socket with child |
|
static |
|
static |
|
static |