Home | Trees | Index | Help |
---|
Package pyGlobus :: Module io :: Class IOBase |
|
GSITCPSocket
Method Summary | |
---|---|
Constructs a IOBase class instance, using the given handle. | |
__del__(self)
| |
Cancel any outstanding operation registered to this IOBase. | |
Close the handle associated with this IOBase. | |
######################################################################### # Free's the underlying memory allocated for the callback structure. | |
######################################################################## # XXX This handle is only valid as long as this object exists. | |
Blocking TCP or file read | |
Asynchronously close the file or connection. | |
Asynchronous TCP or file read. | |
Asynchronous TCP or file write. | |
Nonblocking TCP or file read | |
Nonblocking TCP or file write | |
Blocking TCP or file write. |
Method Details |
---|
__init__(self,
handle)
Constructs a IOBase class instance, using the given handle.
|
cancel(self, doCallbacks)Cancel any outstanding operation registered to this IOBase.
|
close(self)Close the handle associated with this IOBase. |
free_callback(self, cbHandle)######################################################################### # Free's the underlying memory allocated for the callback structure. ######################################################################### |
get_handle(self)######################################################################## # XXX This handle is only valid as long as this object exists. When # the object is destroyed, the memory this handle points to is freed. ####################################################################### |
read(self, buffer, maxBytes, waitForBytes)Blocking TCP or file read Perform a blocking read on the handle. This will block until buf is filled with at least wait_for_nbytes and at most max_nbytes of data from handle, or end-of-file is reached.
|
register_close(self, callback, arg)Asynchronously close the file or connection. When this function returns successfully, no further operations may be done on this handle. Any outstanding requests on this handle with be cancelled with their callbacks invoked before the close completes. No other callbacks may be registered with the globus_io system for this handle after this function is called. Close registrations may not be canceled.
|
register_read(self, buffer, maxBytes, waitForBytes, callback, arg)Asynchronous TCP or file read.
|
register_write(self, data, dataLen, callback, arg)Asynchronous TCP or file write. Perform a write on the handle.
|
try_read(self, buffer, maxBytes)Nonblocking TCP or file read globus_io_try_read() will read whatever data is immediatedly available from the handle without blocking. The value of nbytes_read will be updated to contain the amount of data actually read from this handle.
|
try_write(self, data, maxLen)Nonblocking TCP or file write try_write() will write whatever data can immediately processed by the operating system without blocking.
|
write(self, data, dataLen)Blocking TCP or file write. Perform a blocking write operation on the handle. This will block until the contents of data are written to the network or file, or an error occurs.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Apr 4 14:32:56 2006 | http://epydoc.sf.net |