xrootd
XrdNetOpts.hh
Go to the documentation of this file.
1 #ifndef __XRDNETOPTS_H__
2 #define __XRDNETOPTS_H__
3 /******************************************************************************/
4 /* */
5 /* X r d N e t O p t s . h h */
6 /* */
7 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC02-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
13 // $Id$
14 
15 /******************************************************************************/
16 /* X r d N e t W o r k O p t i o n s */
17 /******************************************************************************/
18 
19 // Force a new file descriptor when setting up UDP communications
20 //
21 #define XRDNET_NEWFD 0x00000100
22 
23 // This side of the socket will never receive any data
24 //
25 #define XRDNET_SENDONLY 0x00000200
26 
27 // Multiple threads may attempts a read (very unusual)
28 //
29 #define XRDNET_MULTREAD 0x000000400
30 
31 // Do not trim off fomain in the host name.
32 //
33 #define XRDNET_NODNTRIM 0x000000800
34 
35 /******************************************************************************/
36 /* X r d N e t W o r k & X r d N e t S o c k e t O p t i o n s */
37 /******************************************************************************/
38 
39 // Turn off TCP_NODELAY
40 //
41 #define XRDNET_DELAY 0x00010000
42 
43 // Enable SO_KEEPALIVE
44 //
45 #define XRDNET_KEEPALIVE 0x00020000
46 
47 // Do not close the socket in child processes hwne they exec
48 //
49 #define XRDNET_NOCLOSEX 0x00040000
50 
51 // Do not print common error messages (spotty right now)
52 //
53 #define XRDNET_NOEMSG 0x00080000
54 
55 // Do not linger on a close
56 //
57 #define XRDNET_NOLINGER 0x00100000
58 
59 // Define a UDP socket
60 //
61 #define XRDNET_UDPSOCKET 0x00200000
62 
63 // Define a FIFO (currently only for NetSocket)
64 //
65 #define XRDNET_FIFO 0x00400000
66 
67 // Avoid DNS reverse lookups
68 //
69 #define XRDNET_NORLKUP 0x00800000
70 
71 /******************************************************************************/
72 /* X r d N e t S o c k e t O p t i o n s */
73 /******************************************************************************/
74 
75 // This socket will be used for server activities (only for XrdNetS
76 //
77 #define XRDNET_SERVER 0x10000000
78 
79 // Maximum backlog for incomming connections. The backlog value goes in low
80 // order byte and is used only when XRDNET_SERVER is specified.
81 //
82 #define XRDNET_BKLG 0x000000FF
83 
84 // Maximum wait time for outgoing connect. The timeout value goes in low
85 // order byte and is used only when XRDNET_SERVER is *NOT* specified.
86 // The value is in seconds (maximum timeout is 255 seconds).
87 //
88 #define XRDNET_TOUT 0x000000FF
89 #endif