Ignore:
Timestamp:
Feb 2, 2016, 6:13:30 PM (4 years ago)
Author:
mabarracus
Message:

Add new source code 5.15.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • yaz/trunk/fuentes/doc/comstack.common.html

    r255 r265  
    1414     The <code class="function">cs_create</code> function returns a null-pointer
    1515     if a system error occurs.
    16      The <code class="literal">blocking</code> parameter should be one if
    17      you wish the association to operate in blocking mode, zero otherwise.
     16     The <code class="literal">blocking</code> parameter should be '1' if
     17     you wish the association to operate in blocking mode, and '0' otherwise.
    1818     The <code class="literal">protocol</code> field should be
    1919     <code class="literal">PROTO_Z3950</code> or <code class="literal">PROTO_HTTP</code>.
     
    4242     and <code class="literal">len</code>, until the buffer has been transmitted.
    4343     When a full buffer has been sent, the function will return 0 for
    44      success. -1 indicates an error condition (see below).
     44     success. The return value -1 indicates an error condition (see below).
    4545    </p><pre class="synopsis">
    4646     int cs_get(COMSTACK handle, char **buf, int *size);
     
    5656     calling
    5757     <code class="function">cs_get</code>
    58      for the fist time, the buffer can be initialized to the null pointer,
    59      and the length should also be set to 0 - cs_get will perform a
     58     for the first time, the buffer can be initialized to the null pointer,
     59     and the length should also be set to 0 (cs_get will perform a
    6060     <code class="function">malloc(2)</code>
    61      on the buffer for you. When a full buffer has been read, the size of
    62      the package is returned (which will always be greater than 1). -1
    63      indicates an error condition.
     61     on the buffer for you). When a full buffer has been read, the size of
     62     the package is returned (which will always be greater than 1).
     63     The return value -1 indicates an error condition.
    6464    </p><p>
    6565     See also the <code class="function">cs_more()</code> function below.
     
    129129     int cs_fileno(COMSTACK h);
    130130    </pre><p>
    131      Returns the file descriptor of the association. Use this when
     131     returns the file descriptor of the association. Use this when
    132132     file-level operations on the endpoint are required
    133133     (<code class="function">select(2)</code> operations, specifically).
Note: See TracChangeset for help on using the changeset viewer.