netatalk  4.4.0
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)
 Start a DSI session, fork an afpd process.

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
[in,out]dsiDSI structure
[in,out]serv_childrenpointer to our structure with all childs
[in]ticklevaltickle interval in seconds
[out]childpafter fork: parent return pointer to child, child returns NULL
Returns
0 on success, any other value denotes failure