Go to the documentation of this file.
21 #define DFLT_CONNECTTIMEOUT 120
22 #define NAME_CONNECTTIMEOUT (char *)"ConnectTimeout"
24 #define DFLT_REQUESTTIMEOUT 300
25 #define NAME_REQUESTTIMEOUT (char *)"RequestTimeout"
27 #define DFLT_MAXREDIRECTCOUNT 16
28 #define NAME_MAXREDIRECTCOUNT (char *)"MaxRedirectcount"
31 #define NAME_DEBUG (char *)"DebugLevel"
33 #define DFLT_RECONNECTWAIT 5
34 #define NAME_RECONNECTWAIT (char *)"ReconnectWait"
36 #define DFLT_REDIRCNTTIMEOUT 36000
37 #define NAME_REDIRCNTTIMEOUT (char *)"RedirCntTimeout"
39 #define DFLT_FIRSTCONNECTMAXCNT 8
40 #define NAME_FIRSTCONNECTMAXCNT (char *)"FirstConnectMaxCnt"
42 #define DFLT_TRANSACTIONTIMEOUT 28800
43 #define NAME_TRANSACTIONTIMEOUT (char *)"TransactionTimeout"
46 #define TXSOCK_ERR_TIMEOUT -1
48 #define TXSOCK_ERR_INTERRUPT -3
52 #define DFLT_MULTISTREAMCNT 0
53 #define NAME_MULTISTREAMCNT (char *)"ParStreamsPerPhyConn"
57 #define DFLT_MULTISTREAMSPLITSIZE (4*1024*1024)
60 #define DFLT_KEEPSOCKOPENIFNOTXRD 0
61 #define NAME_KEEPSOCKOPENIFNOTXRD (char *)"KeepSockOpenIfNotXrd"
64 #define XRD_CLIENT_VERSION (char *)"kXR_ver002+kXR_asyncap"
67 #define XRD_CLIENT_CURRENTVER (kXR_ver002)
68 #define XRD_CLIENT_CAPVER ((kXR_char)kXR_asyncap | XRD_CLIENT_CURRENTVER)
71 #define DFLT_READCACHESIZE 0
72 #define NAME_READCACHESIZE (char *)"ReadCacheSize"
76 #define DFLT_READCACHEBLKREMPOLICY 0
77 #define NAME_READCACHEBLKREMPOLICY (char *)"ReadCacheBlkRemPolicy"
79 #define DFLT_READAHEADSIZE (0)
80 #define NAME_READAHEADSIZE (char *)"ReadAheadSize"
83 #define DFLT_READTRIMBLKSZ (0)
84 #define NAME_READTRIMBLKSZ (char *)"ReadTrimBlockSize"
87 #define DFLT_READAHEADSTRATEGY (1) // This is the sequential readahead
88 #define NAME_READAHEADSTRATEGY (char *)"ReadAheadStrategy"
93 #define DFLT_REMUSEDCACHEBLKS 0
94 #define NAME_REMUSEDCACHEBLKS (char *)"RemoveUsedCacheBlocks"
97 #define DFLT_PURGEWRITTENBLOCKS 0
98 #define NAME_PURGEWRITTENBLOCKS (char *)"PurgeWrittenBlocks"
100 #define NAME_REDIRDOMAINALLOW_RE (char *)"RedirDomainAllowRE"
101 #define NAME_REDIRDOMAINDENY_RE (char *)"RedirDomainDenyRE"
102 #define NAME_CONNECTDOMAINALLOW_RE (char *)"ConnectDomainAllowRE"
103 #define NAME_CONNECTDOMAINDENY_RE (char *)"ConnectDomainDenyRE"
105 #define PROTO (char *)"root"
109 #define DFLT_MAXCONCURRENTOPENS 100
111 #define READV_MAXCHUNKS 512
112 #define READV_MAXCHUNKSIZE (1024*192)
115 #define NAME_SOCKS4HOST (char *)"Socks4Server"
116 #define NAME_SOCKS4PORT (char *)"Socks4Port"
123 #if defined(__linux__) || defined(__macos__)
124 #define DFLT_DFLTTCPWINDOWSIZE (0)
126 #define DFLT_DFLTTCPWINDOWSIZE (262144)
128 #define NAME_DFLTTCPWINDOWSIZE (char *)"DfltTcpWindowSize"
131 #define DFLT_DATASERVERCONN_TTL 300
132 #define NAME_DATASERVERCONN_TTL (char *)"DataServerConn_ttl"
135 #define DFLT_LBSERVERCONN_TTL 1200
136 #define NAME_LBSERVERCONN_TTL (char *)"LBServerConn_ttl"
139 #define DFLT_ENABLE_FORK_HANDLERS 0
140 #define NAME_ENABLE_FORK_HANDLERS (char *)"EnableForkHandlers"
143 #define DFLT_ENABLE_TCP_KEEPALIVE 0
144 #define NAME_ENABLE_TCP_KEEPALIVE (char *)"EnableTCPKeepAlive"
149 #define DFLT_TCP_KEEPALIVE_TIME 7200
150 #define NAME_TCP_KEEPALIVE_TIME (char *)"TCPKeepAliveTime"
153 #define DFLT_TCP_KEEPALIVE_INTERVAL 75
154 #define NAME_TCP_KEEPALIVE_INTERVAL (char *)"TCPKeepAliveInterval"
157 #define DFLT_TCP_KEEPALIVE_PROBES 9
158 #define NAME_TCP_KEEPALIVE_PROBES (char *)"TCPKeepAliveProbes"
161 #define DFLT_XRDCP_SIZE_HINT 1
162 #define NAME_XRDCP_SIZE_HINT (char *)"XrdCpSizeHint"
165 #define DFLT_PRINT_REDIRECTS 0
166 #define NAME_PRINT_REDIRECTS (char *)"PrintRedirects"
171 #define xrdmin(a, b) (a < b ? a : b)
172 #define xrdmax(a, b) (a > b ? a : b)