Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef CONNECT___NCBI_COMM__H
2 #define CONNECT___NCBI_COMM__H
37 #define NCBID_WEBPATH "/Service/ncbid.cgi"
38 #define NCBI_DISP_VERSION "1.2"
39 #define HTTP_CONNECTION_INFO "Connection-Info:"
40 #define HTTP_DISP_FAILURES "Dispatcher-Failures:"
41 #define HTTP_DISP_MESSAGES "Dispatcher-Messages:"
42 #define HTTP_NCBI_MESSAGE "NCBI-Message:"
43 #define HTTP_NCBI_SID "NCBI-SID:"
44 #define HTTP_NCBI_PHID "NCBI-PHID:"
45 #define LBSM_DEFAULT_TIME 30
46 #define LBSM_DEFAULT_RATE 1000.0
47 #define LBSM_STANDBY_THRESHOLD 0.01
48 #define DISPATCHER_CFGPATH "/etc/lbsmd/"
49 #define DISPATCHER_CFGFILE "servrc.cfg"
50 #define DISPATCHER_MSGFILE ".dispd.msg"
51 #define CONN_FWD_PORT_MIN 5860
52 #define CONN_FWD_PORT_MAX 5870
53 #define CONN_FWD_BASE \
54 "https://www.ncbi.nlm.nih.gov/IEB/ToolBox/NETWORK"
55 #define CONN_FWD_LINK CONN_FWD_BASE "/dispatcher.html#Firewalling"
56 #define CONN_FWD_URL CONN_FWD_BASE "/firewall.html#Settings"
57 #define NCBI_EXTERNAL "NCBI-External"
58 #define SERVNSD_TXT_RR_PORT "_PORT="
125 #define FWD_RR_FIREWALL 1
126 #define FWD_RR_KEEPALIVE 2
129 #define FWD_RR_BADREQUEST 1
130 #define FWD_RR_USEDIRECT 2
131 #define FWD_RR_NOFORWARD 3
132 #define FWD_RR_NOTFOUND 4
133 #define FWD_RR_CANTCONN 5
134 #define FWD_RR_REFUSED 6
136 #define FWD_RR_ERRORMASK 0xF0F0
137 #define FWD_RR_REJECTMASK 0x0F0F
150 #define FWD_RR_MAX_SIZE 128
151 #define FWD_MAX_RR_SIZE FWD_RR_MAX_SIZE
static void text(MDB_val *v)
ticket_t ticket
Connection ticket.
unsigned short flag
FWDaemon control flag.
unsigned short port
Port to connect to (if 0, use service)
unsigned int origin
Host requesting / replying.
unsigned int host
Host to connect to.