|
1 | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
2 | | -<!-- $Revision: 1.2 $ --> |
| 2 | +<!-- $Revision: 1.3 $ --> |
3 | 3 | <!-- splitted from ./en/functions/yaz.xml, last change in rev 1.1 --> |
4 | 4 | <refentry id="function.yaz-connect"> |
5 | 5 | <refnamediv> |
6 | 6 | <refname>yaz_connect</refname> |
7 | 7 | <refpurpose> |
8 | | - Prepares for a connection and Z-association to a Z39.50 target. |
| 8 | + Prepares for a connection to a Z39.50 target (server). |
9 | 9 | </refpurpose> |
10 | 10 | </refnamediv> |
11 | 11 | <refsect1> |
12 | 12 | <title>Description</title> |
13 | 13 | <methodsynopsis> |
14 | | - <type>int</type><methodname>yaz_connect</methodname> |
| 14 | + <type>resource</type><methodname>yaz_connect</methodname> |
15 | 15 | <methodparam><type>string</type><parameter>zurl</parameter></methodparam> |
16 | 16 | <methodparam choice="opt"><type>mixed</type><parameter>options</parameter></methodparam> |
17 | 17 | </methodsynopsis> |
18 | 18 | <para> |
19 | | - This function returns a positive ID on success; zero on |
| 19 | + This function returns a connection resource on success; zero on |
20 | 20 | failure. |
21 | 21 | </para> |
22 | 22 | <para> |
23 | 23 | <function>yaz_connect</function> prepares for a connection to a |
24 | | - Z39.50 target. The zurl argument takes the form |
| 24 | + Z39.50 target. The <parameter>zurl</parameter> argument takes the form |
25 | 25 | host[:port][/database]. If port is omitted 210 is used. If |
26 | | - database is omitted Default is used. This function is |
27 | | - non-blocking and doesn't attempt to establish a socket - it |
28 | | - merely prepares a connect to be performed later when |
| 26 | + database is omitted <literal>Default</literal> is used. |
| 27 | + This function is non-blocking and doesn't attempt to establish |
| 28 | + a socket - it merely prepares a connect to be performed later when |
29 | 29 | <function>yaz_wait</function> is called. |
30 | 30 | </para> |
31 | 31 | <para> |
@@ -77,6 +77,12 @@ element set names. For those, piggyback should be disabled. |
77 | 77 | </varlistentry> |
78 | 78 | </variablelist> |
79 | 79 | </para> |
| 80 | + <note> |
| 81 | + <para>The use of a proxy often improves performance. A Z39.50 proxy |
| 82 | + is part of the free <ulink url="&url.yaz-proxy;">YAZ++</ulink> |
| 83 | + package. |
| 84 | + </para> |
| 85 | + </note> |
80 | 86 | </refsect1> |
81 | 87 | </refentry> |
82 | 88 |
|
|
0 commit comments