write(self,
callback,
arg,
writeString,
waitForBytes=0,
data=None)
Nonblocking write call
-
- Parameters:
callback -
- A Python function that has a signature
func(arg,handle,errTuple,buffer, nbytes, data_desc) Where arg is
the user arg,passed into this function, handle is a SWIG'ized
globus_xio_handle_t pointer, and errTuple is a tuple containing
(0,None) if there are no errors or (error_code, error_message) if
there is an error, buffer is the data which has been read in,
nbytes is the number of bytes read in, data_desc is a SWIG'ized
globus_xio_data_descriptor_t pointer.
arg -
- A user argument that will be passed to the callback
function.
writeString -
- a string that will be written to the handle
waitForBytes -
- an int telling how many bytes to write before returning, the
default is the length of the string.
data -
- a XioDataDescriptor object
- Returns:
-
None
- Raises:
XioFileException -
A XioFileException is raised if there
is a problem writing to the handle
|