Browse Source

method is_connected added

master
Dirk Alders 4 years ago
parent
commit
9d8dac2f94
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      __init__.py

+ 3
- 0
__init__.py View File

70
         self.__queue__.enqueue(5, self.__receive_task__, rx_log_lvl)
70
         self.__queue__.enqueue(5, self.__receive_task__, rx_log_lvl)
71
         self.__queue__.run()
71
         self.__queue__.run()
72
 
72
 
73
+    def is_connected(self):
74
+        return self.__connection__ is not None
75
+
73
     def client_address(self):
76
     def client_address(self):
74
         """
77
         """
75
         :return: The client address.
78
         :return: The client address.

Loading…
Cancel
Save