00001 #ifndef _XRC_CONST_H
00002 #define _XRC_CONST_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00034
00035
00036
00038
00039 #define DFLT_CONNECTTIMEOUT 120
00040 #define NAME_CONNECTTIMEOUT (char *)"ConnectTimeout"
00041
00042 #define DFLT_REQUESTTIMEOUT 300
00043 #define NAME_REQUESTTIMEOUT (char *)"RequestTimeout"
00044
00045 #define DFLT_MAXREDIRECTCOUNT 16
00046 #define NAME_MAXREDIRECTCOUNT (char *)"MaxRedirectcount"
00047
00048 #define DFLT_DEBUG 0
00049 #define NAME_DEBUG (char *)"DebugLevel"
00050
00051 #define DFLT_RECONNECTWAIT 5
00052 #define NAME_RECONNECTWAIT (char *)"ReconnectWait"
00053
00054 #define DFLT_REDIRCNTTIMEOUT 36000
00055 #define NAME_REDIRCNTTIMEOUT (char *)"RedirCntTimeout"
00056
00057 #define DFLT_FIRSTCONNECTMAXCNT 8
00058 #define NAME_FIRSTCONNECTMAXCNT (char *)"FirstConnectMaxCnt"
00059
00060 #define DFLT_TRANSACTIONTIMEOUT 28800
00061 #define NAME_TRANSACTIONTIMEOUT (char *)"TransactionTimeout"
00062
00063
00064 #define TXSOCK_ERR_TIMEOUT -1
00065 #define TXSOCK_ERR -2
00066 #define TXSOCK_ERR_INTERRUPT -3
00067
00068
00069
00070 #define DFLT_MULTISTREAMCNT 0
00071 #define NAME_MULTISTREAMCNT (char *)"ParStreamsPerPhyConn"
00072
00073
00074
00075 #define DFLT_MULTISTREAMSPLITSIZE (4*1024*1024)
00076
00077
00078 #define DFLT_KEEPSOCKOPENIFNOTXRD 0
00079 #define NAME_KEEPSOCKOPENIFNOTXRD (char *)"KeepSockOpenIfNotXrd"
00080
00081
00082 #define XRD_CLIENT_VERSION (char *)"kXR_ver002+kXR_asyncap"
00083
00084
00085 #define XRD_CLIENT_CURRENTVER (kXR_ver002)
00086 #define XRD_CLIENT_CAPVER ((kXR_char)kXR_asyncap | XRD_CLIENT_CURRENTVER)
00087
00088
00089 #define DFLT_READCACHESIZE 0
00090 #define NAME_READCACHESIZE (char *)"ReadCacheSize"
00091
00092
00093
00094 #define DFLT_READCACHEBLKREMPOLICY 0
00095 #define NAME_READCACHEBLKREMPOLICY (char *)"ReadCacheBlkRemPolicy"
00096
00097 #define DFLT_READAHEADSIZE (0)
00098 #define NAME_READAHEADSIZE (char *)"ReadAheadSize"
00099
00100
00101 #define DFLT_READTRIMBLKSZ (0)
00102 #define NAME_READTRIMBLKSZ (char *)"ReadTrimBlockSize"
00103
00104
00105 #define DFLT_READAHEADSTRATEGY (1) // This is the sequential readahead
00106 #define NAME_READAHEADSTRATEGY (char *)"ReadAheadStrategy"
00107
00108
00109
00110
00111 #define DFLT_REMUSEDCACHEBLKS 0
00112 #define NAME_REMUSEDCACHEBLKS (char *)"RemoveUsedCacheBlocks"
00113
00114
00115 #define DFLT_PURGEWRITTENBLOCKS 0
00116 #define NAME_PURGEWRITTENBLOCKS (char *)"PurgeWrittenBlocks"
00117
00118 #define NAME_REDIRDOMAINALLOW_RE (char *)"RedirDomainAllowRE"
00119 #define NAME_REDIRDOMAINDENY_RE (char *)"RedirDomainDenyRE"
00120 #define NAME_CONNECTDOMAINALLOW_RE (char *)"ConnectDomainAllowRE"
00121 #define NAME_CONNECTDOMAINDENY_RE (char *)"ConnectDomainDenyRE"
00122
00123 #define PROTO (char *)"root"
00124
00125
00126
00127 #define DFLT_MAXCONCURRENTOPENS 100
00128
00129 #define READV_MAXCHUNKS 512
00130 #define READV_MAXCHUNKSIZE (1024*192)
00131
00132
00133 #define NAME_SOCKS4HOST (char *)"Socks4Server"
00134 #define NAME_SOCKS4PORT (char *)"Socks4Port"
00135
00136
00137
00138
00139
00140
00141 #if defined(__linux__) || defined(__APPLE__)
00142 #define DFLT_DFLTTCPWINDOWSIZE (0)
00143 #else
00144 #define DFLT_DFLTTCPWINDOWSIZE (262144)
00145 #endif
00146 #define NAME_DFLTTCPWINDOWSIZE (char *)"DfltTcpWindowSize"
00147
00148
00149 #define DFLT_DATASERVERCONN_TTL 300
00150 #define NAME_DATASERVERCONN_TTL (char *)"DataServerConn_ttl"
00151
00152
00153 #define DFLT_LBSERVERCONN_TTL 1200
00154 #define NAME_LBSERVERCONN_TTL (char *)"LBServerConn_ttl"
00155
00156
00157 #define DFLT_ENABLE_FORK_HANDLERS 0
00158 #define NAME_ENABLE_FORK_HANDLERS (char *)"EnableForkHandlers"
00159
00160
00161 #define DFLT_ENABLE_TCP_KEEPALIVE 0
00162 #define NAME_ENABLE_TCP_KEEPALIVE (char *)"EnableTCPKeepAlive"
00163
00164
00165
00166
00167 #define DFLT_TCP_KEEPALIVE_TIME 7200
00168 #define NAME_TCP_KEEPALIVE_TIME (char *)"TCPKeepAliveTime"
00169
00170
00171 #define DFLT_TCP_KEEPALIVE_INTERVAL 75
00172 #define NAME_TCP_KEEPALIVE_INTERVAL (char *)"TCPKeepAliveInterval"
00173
00174
00175 #define DFLT_TCP_KEEPALIVE_PROBES 9
00176 #define NAME_TCP_KEEPALIVE_PROBES (char *)"TCPKeepAliveProbes"
00177
00178
00179 #define DFLT_XRDCP_SIZE_HINT 1
00180 #define NAME_XRDCP_SIZE_HINT (char *)"XrdCpSizeHint"
00181
00182
00183 #define DFLT_PRINT_REDIRECTS 0
00184 #define NAME_PRINT_REDIRECTS (char *)"PrintRedirects"
00185
00186 #define TRUE 1
00187 #define FALSE 0
00188
00189 #define xrdmin(a, b) (a < b ? a : b)
00190 #define xrdmax(a, b) (a > b ? a : b)
00191
00192 #endif