公開方法(Public Methods) | |
| __init__ (self, comm_descriptor) | |
| 使用給定的通信描述符初始化一個新實例。 | |
| add_user (self) | |
| 添加一個用戶到連接中。 | |
| remove_user (self) | |
| 從連接中移除一個用戶。 | |
| get_user_count (self) | |
| 獲取當前用戶計數。 | |
| get_descriptor (self) | |
| 獲取連接的描述符。 | |
| get_ptr_comm (self) | |
| 獲取 TCP 通信實例。 | |
| get_json_comm (self) | |
| 獲取 JSON 通信實例。 | |
| JsonMng.JsonConnection.__init__ | ( | self, | |
| comm_descriptor ) |
使用給定的通信描述符初始化一個新實例。
| comm_descriptor | 通信的描述符。 |
| JsonMng.JsonConnection.add_user | ( | self | ) |
添加一個用戶到連接中。
| JsonMng.JsonConnection.get_descriptor | ( | self | ) |
獲取連接的描述符。
| JsonMng.JsonConnection.get_json_comm | ( | self | ) |
獲取 JSON 通信實例。
| JsonMng.JsonConnection.get_ptr_comm | ( | self | ) |
獲取 TCP 通信實例。
| JsonMng.JsonConnection.get_user_count | ( | self | ) |
獲取當前用戶計數。
| JsonMng.JsonConnection.remove_user | ( | self | ) |
從連接中移除一個用戶。