<s> from calvin . utilities . calvin_callback import CalvinCBClass <EOL> from calvin . utilities import calvinlogger <EOL> _log = calvinlogger . get_logger ( __name__ ) <EOL> class CalvinServerBase ( CalvinCBClass ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , iface = '<STR_LIT>' , port = <NUM_LIT:0> , callbacks = None , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> super ( CalvinServerBase , self ) . __init__ ( callbacks , callback_valid_names = [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] ) <EOL> def start ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def stop ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def is_listening ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> class CalvinTransportBase ( CalvinCBClass ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , host , port , callbacks = None , proto = None , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> super ( CalvinTransportBase , self ) . __init__ ( callbacks , callback_valid_names = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:data>' ] ) <EOL> def is_connected ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def disconnect ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def send ( self , data ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def join ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) </s>
