|
@@ -195,6 +195,9 @@ class struct_json_protocol(object):
|
195
|
195
|
self.__comm_inst__.register_connect_callback(self.__clean_receive_buffer__)
|
196
|
196
|
self.__comm_inst__.register_disconnect_callback(self.__authentification_state_reset__)
|
197
|
197
|
|
|
198
|
+ def is_connected(self):
|
|
199
|
+ return self.__comm_inst__.is_connected()
|
|
200
|
+
|
198
|
201
|
def __authentification_state_reset__(self):
|
199
|
202
|
logger.info("%s Resetting authentification state to AUTH_STATE_UNKNOWN_CLIENT", self.LOG_PREFIX)
|
200
|
203
|
self.__authentification_state__ = self.AUTH_STATE_UNKNOWN_CLIENT
|