Table of Contents

Class: TransData ./pyGlobus/gassTransfer.py

This class handles send_bytes and receive_bytes calls which both a TransferClient and a TransferServer object can make. This class is the parent class for those two classes.

Methods   
__del__
__init__
free_callback
receive_bytes
send_bytes
  __del__ 
__del__ ( self )

  __init__ 
__init__ ( self )

  free_callback 
free_callback ( self,  cbHandle )

Free a callback.

Free's the underlying memory allocated for a callback structure.

Arguments:

  • cbHandle A SWIG'ized pointer to a callback structure.

  receive_bytes 
receive_bytes (
        self,
        request,
        buffer,
        wait_for_amount,
        callback,
        arg,
        )

Arguments: - request is a TransRequest object it must be client side if it is used in conjunction with a get request must be server side if used in conjunction with a put or append request

  • buffer A pyGlobus.util.Buffer.Buffer object.. This hides the internal globus_byte_t data buffer.

  • wait_for_amount the minimum amount of data to wait to receive before the callback function is called, the data is received in the callback function

  • callback is a function that is called after enough data has been received

  • arg a user supplied argument to the callback function

Returns:

A SWIG'ized pointer to the callback handle is returned. After the callback completes, this may be free'd with the free_callback method, or it will be free'd when the instance is destroyed.

Raises: if the request object does not meet the specifications above a TransferException is thrown

If ret != GLOBUS_SUCCESS then cbHandle is an error string which is thrown in TransferException

Exceptions   
ex
  send_bytes 
send_bytes (
        self,
        request,
        buffer,
        eof,
        callback,
        arg,
        )

After authorizing a request the server calls send bytes which sends the data in the buffer object

Arguements

-request a server-side request if this is in conjunction with a get request, if in conjunction with a put or append this should be a client-side request

  • buffer A pyGlobus.util.Buffer.Buffer object.. This hides the internal globus_byte_t data buffer.

  • eof true if this is the last data to be sent, false otherwise

  • callback is a function that is called after the data in the buffer has been sent

  • arg a user supplied argument to the callback function

Returns:

A SWIG'ized pointer to the callback handle is returned. After the callback completes, this may be free'd with the free_callback method, or it will be free'd when the instance is destroyed.

Raises: if the request object does not meet the specifications above a TransferException is thrown

If ret != GLOBUS_SUCCESS then cbHandle is an error string which is thrown in TransferException

Exceptions   
ex

Table of Contents

This document was automatically generated on Tue Feb 4 16:47:03 2003 by HappyDoc version 2.1