XrdProtocol.cc

Go to the documentation of this file.
00001 /******************************************************************************/
00002 /*                                                                            */
00003 /*                        X r d P r o t o c o l . c c                         */
00004 /*                                                                            */
00005 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University  */
00006 /*       All Rights Reserved. See XrdInfo.cc for complete License Terms       */
00007 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00008 /*              DE-AC03-76-SFO0515 with the Department of Energy              */
00009 /******************************************************************************/
00010 
00011 //        $Id: XrdProtocol.cc 28902 2009-06-11 12:36:21Z ganis $  
00012 
00013 const char *XrdProtocolCVSID = "$Id: XrdProtocol.cc 28902 2009-06-11 12:36:21Z ganis $";
00014 
00015 #include <stdlib.h>
00016 #include <string.h>
00017 #include <sys/types.h>
00018 #include <sys/socket.h>
00019 
00020 #include "Xrd/XrdProtocol.hh"
00021   
00022 /******************************************************************************/
00023 /*   X r d P r o t o c o l _ C o n f i g   C o p y   C o n s t r u c t o r    */
00024 /******************************************************************************/
00025   
00026 XrdProtocol_Config::XrdProtocol_Config(XrdProtocol_Config &rhs)
00027 {
00028 eDest     = rhs.eDest;
00029 NetTCP    = rhs.NetTCP;
00030 BPool     = rhs.BPool;
00031 Sched     = rhs.Sched;
00032 Stats     = rhs.Stats;
00033 Threads   = rhs.Threads;
00034 Trace     = rhs.Trace;
00035 
00036 ConfigFN  = rhs.ConfigFN ? strdup(rhs.ConfigFN) : 0;
00037 Format    = rhs.Format;
00038 Port      = rhs.Port;
00039 WSize     = rhs.WSize;
00040 AdmPath   = rhs.AdmPath  ? strdup(rhs.AdmPath)  : 0;
00041 AdmMode   = rhs.AdmMode;
00042 myInst    = rhs.myInst   ? strdup(rhs.myInst)   : 0;
00043 myName    = rhs.myName   ? strdup(rhs.myName)   : 0;
00044          if (!rhs.myAddr) myAddr = 0;
00045             else {myAddr = (struct sockaddr *)malloc(sizeof(struct sockaddr));
00046                   memcpy(myAddr, rhs.myAddr, sizeof(struct sockaddr));
00047                  }
00048 ConnMax   = rhs.ConnMax;
00049 readWait  = rhs.readWait;
00050 idleWait  = rhs.idleWait;
00051 hailWait  = rhs.hailWait;
00052 argc      = rhs.argc;
00053 argv      = rhs.argv;
00054 DebugON   = rhs.DebugON;
00055 WANPort   = rhs.WANPort;
00056 WANWSize  = rhs.WANWSize;
00057 }

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