home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / fnb101.zip / Lib / site-packages / Fnorb / orb / Protocol.py < prev    next >
Text File  |  1999-06-28  |  3KB  |  95 lines

  1. #!/usr/bin/env python
  2. #############################################################################
  3. # Copyright (C) DSTC Pty Ltd (ACN 052 372 577) 1997, 1998, 1999
  4. # All Rights Reserved.
  5. #
  6. # The software contained on this media is the property of the DSTC Pty
  7. # Ltd.  Use of this software is strictly in accordance with the
  8. # license agreement in the accompanying LICENSE.HTML file.  If your
  9. # distribution of this software does not contain a LICENSE.HTML file
  10. # then you have no rights to use this software in any manner and
  11. # should contact DSTC at the address below to determine an appropriate
  12. # licensing arrangement.
  13. #      DSTC Pty Ltd
  14. #      Level 7, GP South
  15. #      Staff House Road
  16. #      University of Queensland
  17. #      St Lucia, 4072
  18. #      Australia
  19. #      Tel: +61 7 3365 4310
  20. #      Fax: +61 7 3365 4311
  21. #      Email: enquiries@dstc.edu.au
  22. # This software is being provided "AS IS" without warranty of any
  23. # kind.  In no event shall DSTC Pty Ltd be liable for damage of any
  24. # kind arising out of or in connection with the use or performance of
  25. # this software.
  26. #
  27. # Project:      Fnorb
  28. # File:         $Source: /units/arch/src/Fnorb/orb/RCS/Protocol.py,v $
  29. # Version:      @(#)$RCSfile: Protocol.py,v $ $Revision: 1.6 $
  30. #
  31. #############################################################################
  32. """ Protocol module. """
  33.  
  34.  
  35. class Protocol:
  36.     """ Abstract class for GIOP transport protocols. """
  37.  
  38.     def enable(self, host, port):
  39.     """ Create an endpoint on which to listen for connection requests. """
  40.  
  41.     pass
  42.  
  43.     def disable(self):
  44.     """ Destory the endpoint that is listening for connection requests. """
  45.  
  46.     pass
  47.  
  48.     def start(self, timeout=0):
  49.     """ Start the protocol event loop. """
  50.  
  51.     pass
  52.  
  53.     def stop(self):
  54.     """ Stop the protocol event loop. """
  55.  
  56.     pass
  57.  
  58. # fixme: Do we need these too?
  59.  
  60. ##     def create_reactor(self):
  61. ##     """ Factory method to create a reactor for this protocol. """
  62. ##     pass
  63.  
  64. ##     def create_acceptor(self):
  65. ##     """ Factory method to create an acceptor for this protocol. """
  66. ##     pass
  67.  
  68.     def create_connection(self):
  69.     """ Factory method to create a connection for this protocol. """
  70.     pass
  71.  
  72.     def create_profile(self, id):
  73.     """ Create an IOR profile for the protocol. """
  74.  
  75.     pass
  76.  
  77.     def get_object_key(self, ior):
  78.     """ Extract the object key from an IOR. """
  79.  
  80.     pass
  81.  
  82.     def get_address(self, ior):
  83.     """ Extract the address from an IOR. """
  84.  
  85.     pass
  86.  
  87.     def is_local(self, ior):
  88.     """ Does the IOR reference an object in *this* ORB? """
  89.  
  90.     pass
  91.  
  92. #############################################################################
  93.