Table of Contents

Class: TransferServer ./pyGlobus/gassTransfer.py

__init__ creates a TransListener object which is the listener associated with the TransferServer

Base Classes   
TransData
Methods   
__del__
__init__
authorize
deny
get_base_url
register_accept
register_listen
  __del__ 
__del__ ( self )

  __init__ 
__init__ ( self,  scheme )

Args

scheme is a string of the protocol that will be used

  authorize 
authorize (
        self,
        request,
        length=0,
        )

After the server has accepted a request it can authorize the request if it wants the transfer to proceed

Arguements

  • request a server side request returned from the register_accept call

  • length the number of bytes that the request is authorized to make the default 0, will use GLOBUS_GASS_TRANSFER_LENGTH_UNKNOWN

Returns returns a TransRequest object which will be needed for a send_bytes call

**Raises TransferServerException if the request cannnot be authorized

Exceptions   
ex
  deny 
deny (
        self,
        request,
        reason,
        message,
        )

Exceptions   
ex
  get_base_url 
get_base_url ( self )

Calls the listener's get base url function

  register_accept 
register_accept (
        self,
        attr,
        callback,
        arg,
        )

Has the server accept an incoming client request This function should be called after the callback for register_listen has been called back Does not block

Arguements

  • attr a ListenerAttr object

  • listener a TransListener object

  • callback the function that will be called as soon a a client request is registered

  • arg a user supplied arguement to the callback function

Returns

A TransRequest object is returned the request object is a server_side request

Raises

A GassTransferServerException is Raised if the server is unable to accept this client request

Exceptions   
ex
  register_listen 
register_listen (
        self,
        callback,
        arg,
        )

Has the server listen for incoming client request

Does not block

Arguements

callback the function that will be called as soon a a client request is registered

arg a user supplied arguement 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

A GassTransferServerException is Raised if the server is unable to listen for client requests

Exceptions   
ex

Table of Contents

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