NCBI C++ ToolKit
ncbi_server_infop.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef CONNECT___NCBI_SERVER_INFOP__H
2 #define CONNECT___NCBI_SERVER_INFOP__H
3 
4 /* $Id: ncbi_server_infop.h 95559 2021-11-24 20:22:45Z lavr $
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  * NCBI server meta-address info (private part)
33  *
34  */
35 
36 #include "ncbi_host_infop.h"
38 
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 
45 /* Constructors for the various types of NCBI server meta-addresses
46  */
48 (unsigned int host, /* network byte order */
49  unsigned short port, /* host byte order */
50  const char* args,
51  size_t add
52  );
53 
55 (unsigned int host, /* network byte order */
56  unsigned short port, /* host byte order */
57  size_t add
58  );
59 
61 (ESERV_Type type, /* verified, must be one of fSERV_Http* */
62  unsigned int host, /* network byte order */
63  unsigned short port, /* host byte order */
64  const char* path,
65  const char* args,
66  size_t add
67  );
68 
70 (unsigned int host, /* original server's host in net byte order */
71  unsigned short port, /* original server's port in host byte order */
72  ESERV_Type type, /* type of original server, wrapped into */
73  size_t add
74  );
75 
77 (unsigned int host, /* the only parameter */
78  size_t add
79  );
80 
81 
84 (const char* info_str,
85  const char* name,
86  int/*bool*/ lazy
87  );
88 
89 
92 (const SSERV_Info* orig,
93  const char* name
94  );
95 
96 
98 const char* SERV_NameOfInfo
99 (const SSERV_Info* info
100  );
101 
102 
103 /* Return VHost if available, 0 otherwise. */
105 const char* SERV_HostOfInfo
106 (const SSERV_Info* info
107  );
108 
109 
110 /* Return info's host address packed as IPv6. */
113 (const SSERV_Info* info
114  );
115 
116 
117 #ifdef __cplusplus
118 } /* extern "C" */
119 #endif
120 
121 #endif /* CONNECT___NCBI_SERVER_INFOP__H */
ESERV_Type
#define NCBI_XCONNECT_EXPORT
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
static MDB_envinfo info
Definition: mdb_load.c:37
TNCBI_IPv6Addr SERV_AddrOfInfo(const SSERV_Info *info)
SSERV_Info * SERV_CopyInfoEx(const SSERV_Info *orig, const char *name)
SSERV_Info * SERV_CreateDnsInfoEx(unsigned int host, size_t add)
SSERV_Info * SERV_CreateHttpInfoEx(ESERV_Type type, unsigned int host, unsigned short port, const char *path, const char *args, size_t add)
SSERV_Info * SERV_CreateNcbidInfoEx(unsigned int host, unsigned short port, const char *args, size_t add)
const char * SERV_HostOfInfo(const SSERV_Info *info)
const char * SERV_NameOfInfo(const SSERV_Info *info)
SSERV_Info * SERV_ReadInfoEx(const char *info_str, const char *name, int lazy)
SSERV_Info * SERV_CreateStandaloneInfoEx(unsigned int host, unsigned short port, size_t add)
SSERV_Info * SERV_CreateFirewallInfoEx(unsigned int host, unsigned short port, ESERV_Type type, size_t add)
Definition: type.c:6
Modified on Sat Dec 09 04:44:23 2023 by modify_doxy.py rev. 669887