Both the globus_xio_register_read() and globus_xio_register_write() calls follow similar semantics as described below. if the waitforbytes parameter is greater than zero, the io will happen asynchronously and be completed when at least waitforbytes has been read/written. if the waitforbytes parameter is equal to zero, one of the following alternative behaviors occur: if the length of the buffer is 0 the read or write happens synchronously. if the user is using one of the blocking xio calls, no internal callback will occur. if the length of the buffer is also 0, the call behaves like an asynchronous notification of data ready to be either read or written. ie, an asynchronous select(). in any case, when an error or eof occurs before the waitforbytes request has been met, the outgoing nbytes is set to the amount of data actually read/written before the error or eof occurred.
Generated automatically by Doxygen for globus_xio from the source code.