Logo Search packages:      
Sourcecode: obexd version File versions  Download package

void gw_obex_xfer_set_blocking ( GwObexXfer xfer,
gboolean  block 
)

Set blocking behaviour for a GwObexXfer object when calling xfer_read and xfer_write

When blocking is enabled xfer_read will return only after it has been able to read some data (i.e. GW_OBEX_ERROR_NO_DATA will not be returned). For xfer_write blocking guarantees that *some* data will be written.

Parameters:
xfer Pointer returned by gw_obex_put_async or gw_obex_get_async
block TRUE to enable blocking behaviour

Definition at line 528 of file obex-xfer.c.

                                                                 {
    GW_OBEX_LOCK(xfer->ctx);
    xfer->block = block;
    GW_OBEX_UNLOCK(xfer->ctx);
}


Generated by  Doxygen 1.6.0   Back to index