X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fcomstack.xml;h=7409e64e19868a4b288c40847eec5bad7b7aa274;hb=82529e23b0d26a3a8e107a5c826196ff17a32dbe;hp=e79871b25ba7246c5f4043d1cd6aff9ad3bae8a8;hpb=733dc40da2770d3ecb98d2d2cdc66b05a89bb390;p=yaz-moved-to-github.git diff --git a/doc/comstack.xml b/doc/comstack.xml index e79871b..7409e64 100644 --- a/doc/comstack.xml +++ b/doc/comstack.xml @@ -1,4 +1,4 @@ - + The COMSTACK Module Synopsis (blocking mode) @@ -40,7 +40,7 @@ length_incoming = cs_get(stack, &buf, &size); if (!length_incoming) { fprintf(stderr, "Connection closed\n"); exit(1); -} else if (length_incoming < 0) { +} else if (length_incoming < 0) { cs_perror(stack, "cs_get"); exit(1); } @@ -299,12 +299,12 @@ if (buf) Initiate a connection with the target at address - (more onaddresses below). The function will return 0 on success, and 1 if + (more on addresses below). The function will return 0 on success, and 1 if the operation does not complete immediately (this will only happen on a nonblocking endpoint). In this case, use cs_rcvconnect to complete the operation, - when select(2) reports input pending on the - association. + when select(2) or poll(2) + reports input pending on the association. @@ -446,7 +446,7 @@ if (buf) COMSTACK cs_create_host (const char *str, int blocking, void **vp); - which is just a wrapper around cs_create and + which is just a wrapper for cs_create and cs_straddr. The str is similar to that described for cs_straddr but with a prefix denoting the &comstack; type. Prefixes supported