Changeset 5595

Show
Ignore:
Timestamp:
06/05/10 10:39:43 (3 years ago)
Author:
kosma
Message:

added a _Socket superclass

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • UMPA/branch/link-layer-integration/umit/umpa/_sockets.py

    r5594 r5595  
    8787    return sent_bytes 
    8888 
    89 class SocketL2(object): 
     89class _Socket(object): 
     90    """ 
     91    Raw socket superclass. 
     92 
     93    This is an abstract class. 
     94    """ 
     95 
     96    def __init__(self, **kwargs): 
     97        raise NotImplementedError("this is an abstract class") 
     98 
     99class SocketL2(_Socket): 
    90100    """ 
    91101    Level 2 (link-layer) socket class.