XrdCmsLogin.hh

Go to the documentation of this file.
00001 #ifndef __CMS_LOGIN_H__
00002 #define __CMS_LOGIN_H__
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                        X r d C m s L o g i n . h h                         */
00006 /*                                                                            */
00007 /* (c) 2007 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*                            All Rights Reserved                             */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC02-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012 
00013 //       $Id: XrdCmsLogin.hh 27487 2009-02-18 13:17:34Z ganis $
00014 
00015 #include <sys/uio.h>
00016 
00017 #include "XProtocol/XPtypes.hh"
00018 #include "XProtocol/YProtocol.hh"
00019 
00020 class XrdLink;
00021 
00022 class XrdCmsLogin
00023 {
00024 public:
00025 
00026        int  Admit(XrdLink *Link, XrdCms::CmsLoginData &Data);
00027 
00028 static int  Login(XrdLink *Link, XrdCms::CmsLoginData &Data, int timeout=-1);
00029 
00030        XrdCmsLogin(char *Buff = 0, int Blen = 0) {myBuff = Buff; myBlen = Blen;}
00031 
00032       ~XrdCmsLogin() {}
00033 
00034 private:
00035 
00036 static int Authenticate(XrdLink *Link, XrdCms::CmsLoginData &Data);
00037 static int Emsg(XrdLink *, const char *, int ecode=XrdCms::kYR_EINVAL);
00038 static int sendData(XrdLink *Link, XrdCms::CmsLoginData &Data);
00039 
00040          char       *myBuff;
00041          int         myBlen;
00042 };
00043 #endif

Generated on Tue Jul 5 14:46:27 2011 for ROOT_528-00b_version by  doxygen 1.5.1