00001 /******************************************************************************/ 00002 /* */ 00003 /* X r d X r o o t d X e q . h h */ 00004 /* */ 00005 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */ 00006 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00007 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00008 /* */ 00009 /* This file is part of the XRootD software suite. */ 00010 /* */ 00011 /* XRootD is free software: you can redistribute it and/or modify it under */ 00012 /* the terms of the GNU Lesser General Public License as published by the */ 00013 /* Free Software Foundation, either version 3 of the License, or (at your */ 00014 /* option) any later version. */ 00015 /* */ 00016 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */ 00017 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */ 00018 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */ 00019 /* License for more details. */ 00020 /* */ 00021 /* You should have received a copy of the GNU Lesser General Public License */ 00022 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */ 00023 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */ 00024 /* */ 00025 /* The copyright holder's institutional names and contributor's names may not */ 00026 /* be used to endorse or promote products derived from this software without */ 00027 /* specific prior written permission of the institution or contributor. */ 00028 /******************************************************************************/ 00029 00030 /******************************************************************************/ 00031 /* D e f i n e s */ 00032 /******************************************************************************/ 00033 00034 #define CRED (const XrdSecEntity *)Client 00035 00036 #define TRACELINK Link 00037 00038 #define STATIC_REDIRECT(xfnc) \ 00039 if (Route[xfnc].Port[rdType]) \ 00040 return Response.Send(kXR_redirect,Route[xfnc].Port[rdType],\ 00041 Route[xfnc].Host[rdType]) 00042 00043 /******************************************************************************/ 00044 /* C o m m o n S t r u c t u r e s */ 00045 /******************************************************************************/ 00046 00047 struct XrdXrootdFHandle 00048 {kXR_int32 handle; 00049 00050 void Set(kXR_char *ch) 00051 {memcpy((void *)&handle, (const void *)ch, sizeof(handle));} 00052 XrdXrootdFHandle() {} 00053 XrdXrootdFHandle(kXR_char *ch) {Set(ch);} 00054 ~XrdXrootdFHandle() {} 00055 };