ROOT
6.10/00
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
net
auth
src
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
*);
38
extern
Int_t
SrvClupImpl
(
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
;
47
extern
ErrorHandler_t
gErrFatal
;
48
extern
ErrorHandler_t
gErr
;
49
void
SrvSetSocket
(
TSocket
*socket);
50
51
}
52
53
#endif
TSeqCollection.h
ROOT::gErrFatal
ErrorHandler_t gErrFatal
Int_t
int Int_t
Definition:
RtypesCore.h:41
NetErrors.h
TSocket.h
TSeqCollection
Sequenceable collection abstract base class.
Definition:
TSeqCollection.h:28
ROOT::SrvSetSocket
void SrvSetSocket(TSocket *Socket)
Fill socket parameters.
Definition:
DaemonUtils.cxx:314
SrvClupImpl
Int_t SrvClupImpl(TSeqCollection *secls)
Wrapper to cleanup code.
Definition:
DaemonUtils.cxx:189
SrvAuthImpl
Int_t SrvAuthImpl(TSocket *socket, const char *confdir, const char *tmpdir, string &user, Int_t &meth, Int_t &type, string &ctoken, TSeqCollection *secctxlist)
Server authentication code.
Definition:
DaemonUtils.cxx:210
ErrorHandler_t
void(* ErrorHandler_t)(int level, const char *msg, int size)
Definition:
DaemonUtils.h:40
type
int type
Definition:
TGX11.cxx:120
TSocket
Definition:
TSocket.h:60
void
typedef void((*Func_t)())
ROOT::gErr
ErrorHandler_t gErr
ROOT::gErrSys
ErrorHandler_t gErrSys