NCBI C Toolkit Cross Reference

C/connect/ncbi_comm.h


  1 #ifndef CONNECT___NCBI_COMM__H
  2 #define CONNECT___NCBI_COMM__H
  3 
  4 /*  $Id: ncbi_comm.h,v 6.15 2006/12/13 21:15:51 lavr Exp $
  5  * ===========================================================================
  6  *
  7  *                            PUBLIC DOMAIN NOTICE
  8  *               National Center for Biotechnology Information
  9  *
 10  *  This software/database is a "United States Government Work" under the
 11  *  terms of the United States Copyright Act.  It was written as part of
 12  *  the author's official duties as a United States Government employee and
 13  *  thus cannot be copyrighted.  This software/database is freely available
 14  *  to the public for use. The National Library of Medicine and the U.S.
 15  *  Government have not placed any restriction on its use or reproduction.
 16  *
 17  *  Although all reasonable efforts have been taken to ensure the accuracy
 18  *  and reliability of the software and data, the NLM and the U.S.
 19  *  Government do not and cannot warrant the performance or results that
 20  *  may be obtained by using this software or data. The NLM and the U.S.
 21  *  Government disclaim all warranties, express or implied, including
 22  *  warranties of performance, merchantability or fitness for any particular
 23  *  purpose.
 24  *
 25  *  Please cite the author in any work or product based on this material.
 26  *
 27  * ===========================================================================
 28  *
 29  * Author:  Anton Lavrentiev
 30  *
 31  * File Description:
 32  *   Common part of internal communication protocol used by both sides
 33  *   (client and server) of firewall daemon and service dispatcher.
 34  *
 35  */
 36 
 37 
 38 #define NCBID_WEBPATH           "/Service/ncbid.cgi"
 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 LBSM_DEFAULT_TIME       30    /* Default expiration time, in seconds */
 44 #define LBSM_DEFAULT_RATE       1000  /* For SLBSM_Service::info::rate       */
 45 #define DISPATCHER_CFGPATH      "/etc/lbsmd/"
 46 #define DISPATCHER_CFGFILE      "servrc.cfg"
 47 #define DISP_PROTOCOL_VERSION   "1.1"
 48 #define DISPD_MESSAGE_FILE      ".dispd.msg"
 49 
 50 
 51 #ifdef __cplusplus
 52 extern "C" {
 53 #endif
 54 
 55 
 56 typedef unsigned int ticket_t;
 57 
 58 
 59 #ifdef __cplusplus
 60 } /* extern "C" */
 61 #endif
 62 
 63 
 64 /*
 65  * --------------------------------------------------------------------------
 66  * $Log: ncbi_comm.h,v $
 67  * Revision 6.15  2006/12/13 21:15:51  lavr
 68  * Fix comments
 69  *
 70  * Revision 6.14  2006/09/07 17:50:02  lavr
 71  * DISPATCHER_CFGPATH to define as "/etc/lbsmd"
 72  *
 73  * Revision 6.13  2006/04/05 14:59:04  lavr
 74  * +LBSM_DEFAULTs
 75  *
 76  * Revision 6.12  2006/01/17 20:19:01  lavr
 77  * HTTP_DISP_FAILURES split into FAILURES and MESSAGES (new macro)
 78  *
 79  * Revision 6.11  2005/12/23 18:09:01  lavr
 80  * Bump minor version number in DISP_PROTOCOL_VERSION
 81  *
 82  * Revision 6.10  2005/04/20 18:13:10  lavr
 83  * extern "C" limited to code only (not preprocessor macros)
 84  *
 85  * Revision 6.9  2004/08/02 16:52:42  lavr
 86  * +DISPD_MESSAGE_FILE
 87  *
 88  * Revision 6.8  2003/08/11 19:06:23  lavr
 89  * +HTTP_DISP_MESSAGE
 90  *
 91  * Revision 6.7  2002/12/10 22:11:14  lavr
 92  * Add DISP_PROTOCOL_VERSION
 93  *
 94  * Revision 6.6  2002/10/11 19:44:51  lavr
 95  * NCBID_NAME changed into NCBID_WEBAPTH; DISPATCHER_CFGPATH added
 96  *
 97  * Revision 6.5  2002/09/19 18:07:57  lavr
 98  * Header file guard macro changed; log moved to end
 99  *
100  * Revision 6.4  2001/08/20 21:59:05  lavr
101  * New macro: DISPATCHER_CFGFILE
102  *
103  * Revision 6.3  2001/05/11 15:28:46  lavr
104  * Protocol change: REQUEST_FAILED -> DISP_FAILURES
105  *
106  * Revision 6.2  2001/01/08 22:34:45  lavr
107  * Request-Failed added to protocol
108  *
109  * Revision 6.1  2000/12/29 18:20:26  lavr
110  * Initial revision
111  *
112  * ==========================================================================
113  */
114 
115 #endif /* CONNECT___NCBI_COMM__H */
116 

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.