Package pyGlobus :: Module ftpControl :: Class FtpControlServer
[show private | hide private]
[frames | no frames]

Class FtpControlServer


Method Summary
  __init__(self, handle)
  __del__(self)
  accept(self, handle, callback, arg)
  authenticate(self, handle, auth_req, callback, arg)
Authenticate a client connection.
  free_callback(self, callbackHandle)
Frees the memory associated with the callback handle
  get_handle(self)
  listen(self, port, callback, arg)
  stop(self, callback, arg)

Method Details

authenticate(self, handle, auth_req, callback, arg)

Authenticate a client connection.

This function is called to authenticate a connection from a client.

After a client connection has been accepted (using the globus_ftp_control_server_accept call), this function should be called to authenticate the client. The caller of this function may specify certain authentication requirements using the auth_requirements parameter.
Parameters:
handle - a FtpControl object that has already been used in the accept call
auth_req - an int specifying the authentication required
callback -

The function to be called when the authentication has been accepted or rejected. It has the following signature:

'func(arg,handle,error,authInfo)', where arg is the argument passed into this call, handle is a SWIG'ized pointer to the ftp control object, error is a tuple (error_code, error_description). If there is no error, the error_code is 0 and the error description is a None object, and authInfo is a SWIG'ized pointer to a auth info object.
arg - A user argument to be returned when the callback is executed.
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:
FtpControlException - A FtpControlException is raised if there is a problem authenticating to the server

free_callback(self, callbackHandle)

Frees the memory associated with the callback handle
Parameters:
callbackHandle - - a SWIG'ized pointer to a callback handle
Returns:

None

None

Generated by Epydoc 2.1 on Tue Apr 4 14:32:53 2006 http://epydoc.sf.net