Package pyGlobus :: Module gassTransfer :: Class TransListener
[show private | hide private]
[frames | no frames]

Class TransListener


Simple class that wraps the listener handle for servers

handle is the listerner handle pointer

The TransServer class provides an higher level interface than this.
Method Summary
  __init__(self, attr, scheme)
  __del__(self)
frees the request handles memory
  close_listener(self, callback, arg)
Callbacks for any outstanding register_accepts are called before the listener is closed
  get_base_url(self)
Gets the base url that the listener is listening on
  get_handle(self)

Method Details

__init__(self, attr=None, scheme='http')
(Constructor)

Parameters:
attr - is a ListenerAttr object
scheme - is a string denoting the scheme used for file transfer eg.: http

__del__(self)
(Destructor)

frees the request handles memory
Raises:
TransferException - A TransferException is raised if there is a problem freeing the memory

close_listener(self, callback, arg)

Callbacks for any outstanding register_accepts are called before the listener is closed
Parameters:
callback - function that is called when the listener is closed
arg - user supplied arguement to the callback function
Raises:
TransferListenerException - A TransferListenerException if the listener cannot be closed

get_base_url(self)

Gets the base url that the listener is listening on

Returns a string of that url

Generated by Epydoc 2.0 on Mon Oct 18 18:37:23 2004 http://epydoc.sf.net