netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
dsi_getsess.c File Reference
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <atalk/dsi.h>
#include <atalk/logger.h>
#include <atalk/server_child.h>
#include <atalk/util.h>

Functions

int dsi_getsession (DSI *dsi, server_child_t *serv_children, int tickleval, afp_child_t **childp)

Function Documentation

◆ dsi_getsession()

int dsi_getsession ( DSI * dsi,
server_child_t * serv_children,
int tickleval,
afp_child_t ** childp )

Start a DSI session, fork an afpd process

Parameters
dsi(rw) DSI structure
serv_children(rw) pointer to our structure with all childs
tickleval(r) tickle interval in seconds
childp(w) after fork: parent return pointer to child, child returns NULL
Returns
0 on success, any other value denotes failure