home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / fnb101.zip / Lib / site-packages / Fnorb / orb / Connection.py < prev    next >
Text File  |  1999-06-28  |  2KB  |  82 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/Connection.py,v $
  29. # Version:      @(#)$RCSfile: Connection.py,v $ $Revision: 1.2 $
  30. #
  31. #############################################################################
  32. """ Abstract Connection class. """
  33.  
  34.  
  35. class Connection:
  36.     """ Abstract Connection class. """
  37.  
  38.     def connect(self):
  39.     """ Connect to the remote object. """
  40.     
  41.     pass
  42.  
  43.     def disconnect(self):
  44.     """ Disconnect from the remote object. """
  45.     
  46.     pass
  47.  
  48.     def send(self, data):
  49.     """ Send as much of the data as we can.
  50.  
  51.     Returns the number of bytes actually sent.
  52.  
  53.     """
  54.     pass
  55.  
  56.     def recv(self, n):
  57.     """ Receive at most 'n' bytes of data.
  58.  
  59.     Returns the data received.
  60.  
  61.     """
  62.     pass
  63.  
  64.     def is_connected(self):
  65.     """ Are we connected to the remote object? """
  66.  
  67.     pass
  68.  
  69.     def blocking(self, blocking):
  70.     """ Set the connection to blocking (1) or non-blocking (0). """
  71.  
  72.     pass
  73.  
  74.     def handle(self):
  75.     """ Return my underlying I/O handle. """
  76.  
  77.     pass
  78.  
  79. #############################################################################
  80.