Package pyGlobus :: Module xio :: Class XioServerAsyn
[show private | hide private]
[frames | no frames]

Class XioServerAsyn

  XioBase --+    
            |    
XioServerBase --+
                |
               XioServerAsyn


XioServer with Nonblocking operations
Method Summary
  __init__(self, attr, stack, handle)
  __del__(self)
  accept(self, callback, arg)
Accept incoming connections, Nonblocking
  close(self, callback, arg)
Close the server, blocking
    Inherited from XioServerBase
  cancel_accept(self)
  cntl(self, driver, cmd, arg)
  free_callback1(self, cbHandle)
  get_contact(self)
    Inherited from XioBase
  get_handle(self)

Method Details

accept(self, callback, arg)

Accept incoming connections, Nonblocking
Parameters:
callback - - a Python function whose signature is func(arg, server, handle, errTuple): where arg is the user arg, server is a SWIG'ized globus_xio_server_t pointer, target is a SWIG'ized globus_xio_handle_t pointer, and errTuple is a tuple containing (0,None) if there are no errors or (error_code, error_message) if there is an error
arg - - a user argument that will be passed to the callback function
Returns:
None
Raises:
XioServerException - A XioServerException is raised if there is a problem accepting a connection

close(self, callback, arg)

Close the server, blocking
Parameters:
callback - - a Python function whose signature is func(arg,server) where arg is the arg you pass into this method and server is a SWIG'ized globus_xio_server_t pointer
arg - - a user argument you wish pass to the callback
Returns:
None
Raises:
XioServerException - A XioServerException is raised if there is a problem closing the server

Generated by Epydoc 2.1 on Thu Dec 23 16:44:58 2004 http://epydoc.sf.net