Package pyGlobus :: Module xio :: Class XioFile
[show private | hide private]
[frames | no frames]

Class XioFile

XioBase --+    
          |    
XioFileBase --+
              |
             XioFile


XioFile class with blocking operations
Method Summary
  __init__(self, stack, handle)
  __del__(self)
frees the memory malloc'd in either xioc.handle_create or in a accept callback,
  close(self, attr)
Return none
  open(self, contact_string, attr)
Creates the underlying handle, blocking
  read(self, buffer, waitForBytes, data)
blocking read call
  write(self, writeString, waitForBytes, data)
blocking write call
    Inherited from XioFileBase
  free_callback1(self, cbHandle)
  free_callback4(self, cbHandle)
    Inherited from XioBase
  get_handle(self)

Method Details

__del__(self)
(Destructor)

frees the memory malloc'd in either xioc.handle_create or in a accept callback,
Overrides:
pyGlobus.xio.XioFileBase.__del__ (inherited documentation)

close(self, attr=None)

Parameters:
attr - - a XioAttr object
Returns:
None
Raises:
XioFileException - A XioFileException is raised if there is a problem opening the file

open(self, contact_string, attr=None)

Creates the underlying handle, blocking
Parameters:
contact_string - - a Python string
attr - - a XioAttr object
Returns:
None
Raises:
XioFileException - A XioFileException is raised if there is a problem opening the file

read(self, buffer, waitForBytes=1, data=None)

blocking read call
Parameters:
buffer - - A pyGlobus.util.Buffer object
waitForBytes - - an int telling how many bytes to wait to recieve before returning
data - - a XioDataDescriptor object
Returns:
A string read from the handle
Raises:
XioFileException - A XioFileException is raised if there is a problem reading from the handle

write(self, writeString, waitForBytes=0, data=None)

blocking write call
Parameters:
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

Generated by Epydoc 2.0 on Thu Oct 28 17:14:22 2004 http://epydoc.sf.net