00001 #ifndef __XRDNETOPTS_H__ 00002 #define __XRDNETOPTS_H__ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d N e t O p t s . h h */ 00006 /* */ 00007 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 // $Id: XrdNetOpts.hh 25932 2008-10-23 10:58:11Z ganis $ 00014 00015 /******************************************************************************/ 00016 /* X r d N e t W o r k O p t i o n s */ 00017 /******************************************************************************/ 00018 00019 // Force a new file descriptor when setting up UDP communications 00020 // 00021 #define XRDNET_NEWFD 0x00000100 00022 00023 // This side of the socket will never receive any data 00024 // 00025 #define XRDNET_SENDONLY 0x00000200 00026 00027 // Multiple threads may attempts a read (very unusual) 00028 // 00029 #define XRDNET_MULTREAD 0x000000400 00030 00031 // Do not trim off fomain in the host name. 00032 // 00033 #define XRDNET_NODNTRIM 0x000000800 00034 00035 /******************************************************************************/ 00036 /* 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 */ 00037 /******************************************************************************/ 00038 00039 // Turn off TCP_NODELAY 00040 // 00041 #define XRDNET_DELAY 0x00010000 00042 00043 // Enable SO_KEEPALIVE 00044 // 00045 #define XRDNET_KEEPALIVE 0x00020000 00046 00047 // Do not close the socket in child processes hwne they exec 00048 // 00049 #define XRDNET_NOCLOSEX 0x00040000 00050 00051 // Do not print common error messages (spotty right now) 00052 // 00053 #define XRDNET_NOEMSG 0x00080000 00054 00055 // Do not linger on a close 00056 // 00057 #define XRDNET_NOLINGER 0x00100000 00058 00059 // Define a UDP socket 00060 // 00061 #define XRDNET_UDPSOCKET 0x00200000 00062 00063 // Define a FIFO (currently only for NetSocket) 00064 // 00065 #define XRDNET_FIFO 0x00400000 00066 00067 // Avoid DNS reverse lookups 00068 // 00069 #define XRDNET_NORLKUP 0x00800000 00070 00071 /******************************************************************************/ 00072 /* X r d N e t S o c k e t O p t i o n s */ 00073 /******************************************************************************/ 00074 00075 // This socket will be used for server activities (only for XrdNetS 00076 // 00077 #define XRDNET_SERVER 0x10000000 00078 00079 // Maximum backlog for incomming connections. The backlog value goes in low 00080 // order byte and is used only when XRDNET_SERVER is specified. 00081 // 00082 #define XRDNET_BKLG 0x000000FF 00083 00084 // Maximum wait time for outgoing connect. The timeout value goes in low 00085 // order byte and is used only when XRDNET_SERVER is *NOT* specified. 00086 // The value is in seconds (maximum timeout is 255 seconds). 00087 // 00088 #define XRDNET_TOUT 0x000000FF 00089 #endif