2
* ===========================================================================
5
* National Center for Biotechnology Information (NCBI)
7
* This software/database is a "United States Government Work" under the
8
* terms of the United States Copyright Act. It was written as part of
9
* the author's official duties as a United States Government employee and
10
* thus cannot be copyrighted. This software/database is freely available
11
* to the public for use. The National Library of Medicine and the U.S.
12
* Government do not place any restriction on its use or reproduction.
13
* We would, however, appreciate having the NCBI and the author cited in
14
* any work or product based on this material
16
* Although all reasonable efforts have been taken to ensure the accuracy
17
* and reliability of the software and data, the NLM and the U.S.
18
* Government do not and cannot warrant the performance or results that
19
* may be obtained by using this software or data. The NLM and the U.S.
20
* Government disclaim all warranties, express or implied, including
21
* warranties of performance, merchantability or fitness for any particular
24
* ===========================================================================
26
* File Name: urlquery.h
28
* Author: Jonathan Kans
30
* Version Creation Date: 4/16/98
37
* --------------------------------------------------------------------------
38
* $Log: urlquery.h,v $
39
* Revision 6.12 2003/09/03 21:15:29 lavr
40
* Reuse "arguments" in QUERY_OpenServiceQuery() to be real service argument
41
* (formely it was to modify the dispatcher and was not really used anywhere)
43
* Revision 6.11 2002/11/21 15:24:31 johnson
44
* changed 'queue' vars to 'q' to avoid stl conflict
46
* Revision 6.10 2001/06/07 20:07:41 kans
47
* added QUERY_OpenServiceQuery
49
* Revision 6.9 2001/02/21 22:02:04 lavr
50
* Changes for use new CONN interface
52
* Revision 6.8 2000/08/18 19:08:58 kans
53
* added QUERY_WaitForNextMacEvent, otherwise QuickDraw collides with mmdbapi
55
* Revision 6.7 2000/06/30 12:46:11 kans
56
* added QUERY_CloseQueue
58
* Revision 6.6 2000/06/29 18:27:10 kans
59
* QUERY_OpenUrlQuery has new EMIME_Type type and EMIME_Encoding encoding parameters
61
* Revision 6.5 2000/06/13 12:58:15 kans
62
* added closeConn parameter to QUERY_AddToQueue
64
* Revision 6.4 1999/07/28 21:05:23 vakatov
65
* Moved all #include's from inside the NLM_EXTERN & `extern "C"' block
67
* ==========================================================================
2
* ===========================================================================
5
* National Center for Biotechnology Information (NCBI)
7
* This software/database is a "United States Government Work" under the
8
* terms of the United States Copyright Act. It was written as part of
9
* the author's official duties as a United States Government employee and
10
* thus cannot be copyrighted. This software/database is freely available
11
* to the public for use. The National Library of Medicine and the U.S.
12
* Government do not place any restriction on its use or reproduction.
13
* We would, however, appreciate having the NCBI and the author cited in
14
* any work or product based on this material
16
* Although all reasonable efforts have been taken to ensure the accuracy
17
* and reliability of the software and data, the NLM and the U.S.
18
* Government do not and cannot warrant the performance or results that
19
* may be obtained by using this software or data. The NLM and the U.S.
20
* Government disclaim all warranties, express or implied, including
21
* warranties of performance, merchantability or fitness for any particular
24
* ===========================================================================
26
* File Name: urlquery.h
28
* Author: Jonathan Kans
30
* Version Creation Date: 4/16/98
37
* --------------------------------------------------------------------------
38
* $Log: urlquery.h,v $
39
* Revision 6.15 2006/04/15 01:59:01 lavr
40
* +QUERY_OpenServiceQueryEx
42
* Revision 6.14 2006/01/24 20:22:26 lavr
43
* The boiler plate and revision log reindented
45
* Revision 6.13 2006/01/19 21:11:42 lavr
46
* QUERY_SendQuery() to return EIO_Status
48
* Revision 6.12 2003/09/03 21:15:29 lavr
49
* Reuse "arguments" in QUERY_OpenServiceQuery() to be real service argument
50
* (formely it was to modify the dispatcher and was not really used anywhere)
52
* Revision 6.11 2002/11/21 15:24:31 johnson
53
* changed 'queue' vars to 'q' to avoid stl conflict
55
* Revision 6.10 2001/06/07 20:07:41 kans
56
* added QUERY_OpenServiceQuery
58
* Revision 6.9 2001/02/21 22:02:04 lavr
59
* Changes for use new CONN interface
61
* Revision 6.8 2000/08/18 19:08:58 kans
62
* added QUERY_WaitForNextMacEvent, otherwise QuickDraw collides with mmdbapi
64
* Revision 6.7 2000/06/30 12:46:11 kans
65
* added QUERY_CloseQueue
67
* Revision 6.6 2000/06/29 18:27:10 kans
68
* QUERY_OpenUrlQuery has new EMIME_Type type and EMIME_Encoding encoding parameters
70
* Revision 6.5 2000/06/13 12:58:15 kans
71
* added closeConn parameter to QUERY_AddToQueue
73
* Revision 6.4 1999/07/28 21:05:23 vakatov
74
* Moved all #include's from inside the NLM_EXTERN & `extern "C"' block
76
* ==========================================================================
121
Returns connection to NCBI named service. Pass arguments (if any)
122
via the connection to the service (if successful). Return NULL on error.
130
Returns connection to NCBI named service. Pass parameters (if any)
131
via the connection to the service (if successful). Optionally,
132
arguments may be passed to services that support connections via
133
URLs (note that unlike the service parameters these is no guarantee
134
that the arguments will be passed since the service can be implemented
135
in a non-URL-compatible manner, like e.g. via a standalone server).
136
Return NULL on error.
139
NLM_EXTERN CONN QUERY_OpenServiceQueryEx (
140
Nlm_CharPtr service, Nlm_CharPtr parameters, Nlm_Uint4 timeoutsec,
141
Nlm_CharPtr arguments
145
Same as QUERY_OpenServiceQueryEx(service, parameters, timeoutsec, 0);
125
147
NLM_EXTERN CONN QUERY_OpenServiceQuery (
126
Nlm_CharPtr service, Nlm_CharPtr arguments, Nlm_Uint4 timeoutsec
148
Nlm_CharPtr service, Nlm_CharPtr parameters, Nlm_Uint4 timeoutsec