X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=doc%2Fzoom.xml;h=0c702f1f1ec6168f0165b63a7a8c5db431f382b2;hp=315e78e1a1e56914d6750bdbfd90477f541c882b;hb=fd2f1538cdb20385c2c267d318c59d567eb3d242;hpb=15f2d80b134fa41e213f6328440d1a25f80efd97 diff --git a/doc/zoom.xml b/doc/zoom.xml index 315e78e..0c702f1 100644 --- a/doc/zoom.xml +++ b/doc/zoom.xml @@ -1,4 +1,4 @@ - + Building clients with ZOOM @@ -86,8 +86,6 @@ const char *Z3950_connection_option_get (Z3950_connection c, const char *key); - - const char *Z3950_connection_host (Z3950_connection c); The Z3950_connection_option_set allows you to @@ -122,6 +120,10 @@ passAuthentication password none + hostTarget host. This setting is "read-only". + It's automatically set internally when connecting to a target. + none + proxyProxy host none @@ -139,14 +141,6 @@ - - Function Z3950_connection_host returns - the host for the connection as specified in a call to - Z3950_connection_new or - Z3950_connection_connect. - This function returns NULL if host isn't - set for the connection. - int Z3950_connection_error (Z3950_connection c, const char **cp, const char **addinfo); @@ -414,7 +408,7 @@ Z3950_resultset_record. - If a persistent pointer to a record is desired + If a persistent reference to a record is desired Z3950_record_dup should be used. It returns a record reference that at any later stage should be destroyed by @@ -478,16 +472,27 @@ The functions Z3950_resultset_record and Z3950_resultset_records inspects the client-side - record cache. If the records(s) were not found, i.e. not yet retrieved - from, they are fetched using Present Requests. + record cache. Records not found in cache are fetched using + Present. + The functions may block (and perform network I/O) - even though option + async is 1, because they return records objects. + (and there's no way to return records objects without retrieving them!). + + + There is a trick, however, in the usage of function + Z3950_resultset_records that allows for + delayed retrieval (and makes it non-blocking). By passing + a null pointer for recs you're indicating + you're not interested in getting records objects + now. Options - Most &zoom; objects provide a way to specify options to default behavior. + Most &zoom; objects provide a way to specify options to change behavior. From an implementation point of view a set of options is just like - an associate array / hash array, etc. + an associative array / hash array, etc. Z3950_options Z3950_options_create (void);