1LFC_STARTSESS(3)                  LFC      Library      Functions
2LFC_STARTSESS(3)
3
4
5
6[1mNAME[0m
7       lfc_startsess ‐ start session
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "lfc_api.h"[0m
12
13       [1mint  lfc_startsess  (char  *[4m[22mserver[24m[1m,  char
14*[4m[22mcomment[24m[1m);[0m
15
16[1mDESCRIPTION[0m
17       [1mlfc_startsess   [22mstarts   session.   The  connection
18to the Name Server is
19       kept  open  until   [1mlfc_endsess    [22mis    explicitly
20called.   Requests  issued
21       between   [1mlfc_startsess  [22mand [1mlfc_endsess [22mare
22independent from each other
23       and  are  individually  committed  or  rolled  back.   The
24[4mcomment[24m  is  logged
25       in the server log.
26
27[1mRETURN VALUE[0m
28       This  routine  returns  0  if the operation was successful
29or ‐1 if the
30       operation failed. In the latter case, [1mserrno [22mis set
31appropriately.
32
33[1mERRORS[0m
34       [1mEINVAL        [22mThe  length of [4mcomment[24m exceeds
35[1mCA_MAXCOMMENTLEN[22m.
36
37       [1mSENOSHOST    [22mHost unknown.
38
39       [1mSENOSSERV    [22mService unknown.
40
41       [1mSECOMERR     [22mCommunication error.
42
43       [1mENSNACT      [22mName server is not running or is being
44shutdown.
45
46[1mSEE ALSO[0m
47       [1mlfc_endsess(3)[0m
48
49
50
51LFC                                                        $Date$
52LFC_STARTSESS(3)
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Impressum