Logo ROOT   6.10/09
Reference Guide
DaemonUtils.h
Go to the documentation of this file.
1 // @(#)root/auth:$Id$
2 // Author: Gerri Ganis 19/1/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_DaemonUtils
13 #define ROOT_DaemonUtils
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // DaemonUtils //
19 // //
20 // This file defines wrappers to client utils calls used by server //
21 // authentication daemons. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include <string>
26 
27 #include "TSocket.h"
28 #include "TSeqCollection.h"
29 #include "NetErrors.h"
30 #include "rpddefs.h"
31 
32 #include "rpdp.h"
33 
34 
35 extern Int_t SrvAuthImpl(TSocket *socket, const char *, const char *,
36  std::string &user, Int_t &meth,
37  Int_t &type, std::string &ctoken, TSeqCollection *);
39 
40 typedef void (*ErrorHandler_t)(int level, const char *msg, int size);
41 
42 
43 namespace ROOT {
44 
45 // Error handlers prototypes ...
46 extern ErrorHandler_t gErrSys;
48 extern ErrorHandler_t gErr;
49 void SrvSetSocket(TSocket *socket);
50 
51 }
52 
53 #endif
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
ErrorHandler_t gErrFatal
int Int_t
Definition: RtypesCore.h:41
Int_t SrvClupImpl(TSeqCollection *)
Wrapper to cleanup code.
Sequenceable collection abstract base class.
void SrvSetSocket(TSocket *Socket)
Fill socket parameters.
void(* ErrorHandler_t)(int level, const char *msg, int size)
Definition: DaemonUtils.h:40
Int_t SrvAuthImpl(TSocket *socket, const char *, const char *, std::string &user, Int_t &meth, Int_t &type, std::string &ctoken, TSeqCollection *)
Server authentication code.
int type
Definition: TGX11.cxx:120
typedef void((*Func_t)())
ErrorHandler_t gErr
ErrorHandler_t gErrSys