webcface.client_data module
- class webcface.client_data.ClientData(name: str, logger_internal: Logger, auto_reconnect: bool)[source]
Bases:
object
- auto_reconnect: bool
- canvas2d_store: SyncDataStore2[Canvas2DData, None]
- canvas3d_store: SyncDataStore2[Canvas3DData, None]
- connected: bool
- func_listener_handlers: Dict[str, List[CallHandle]]
- func_result_store: FuncResultStore
- func_store: SyncDataStore2[FuncInfo, None]
- image_store: SyncDataStore2[ImageFrame, ImageReq]
- log_store: SyncDataStore2[LogData, None]
- logger_internal: Logger
- member_ids: Dict[str, int]
- member_lib_name: Dict[int, str]
- member_lib_ver: Dict[int, str]
- member_remote_addr: Dict[int, str]
- on_canvas2d_change: Dict[str, Dict[str, Callable]]
- on_canvas2d_entry: Dict[str, Callable]
- on_canvas3d_change: Dict[str, Dict[str, Callable]]
- on_canvas3d_entry: Dict[str, Callable]
- on_func_entry: Dict[str, Callable]
- on_image_change: Dict[str, Dict[str, Callable]]
- on_image_entry: Dict[str, Callable]
- on_log_change: Dict[str, Callable]
- on_log_entry: Dict[str, Callable]
- on_member_entry: Callable | None
- on_ping: Dict[str, Callable]
- on_sync: Dict[str, Callable]
- on_text_change: Dict[str, Dict[str, Callable]]
- on_text_entry: Dict[str, Callable]
- on_value_change: Dict[str, Dict[str, Callable]]
- on_value_entry: Dict[str, Callable]
- on_view_change: Dict[str, Dict[str, Callable]]
- on_view_entry: Dict[str, Callable]
- ping_status: Dict[int, int]
- ping_status_req: bool
- pop_msg() List[MessageBase] | None [source]
- queue_msg_always(msgs: List[MessageBase]) None [source]
メッセージをキューに入れる
- queue_msg_online(msgs: List[MessageBase]) bool [source]
接続できていればキューに入れtrueを返す
- queue_msg_req(msgs: List[MessageBase]) bool [source]
msg_firstが空でなければキューに入れtrueを返す
- recv_cv: Condition
- recv_queue: List[bytes]
- self_member_id: int | None
- self_member_name: str
- svr_hostname: str
- svr_name: str
- svr_version: str
- sync_init_end: bool
- sync_time_store: SyncDataStore1[datetime]
- text_store: SyncDataStore2[float | bool | str, None]
- value_store: SyncDataStore2[List[float], None]
- view_store: SyncDataStore2[ViewData, None]
- class webcface.client_data.FuncResultStore[source]
Bases:
object
- get_result(caller_id: int) PromiseData [source]
- lock: allocate_lock
- results: List[PromiseData | None]
- class webcface.client_data.SyncDataStore1(name: str)[source]
Bases:
Generic
[T
]- data_recv: Dict[str, T]
- entry: List[str]
- lock: RLock
- req: Dict[str, bool]
- self_member_name: str
- class webcface.client_data.SyncDataStore2(name: str, should_send: Callable | None = None)[source]
Bases:
Generic
[T
,R
]- data_recv: Dict[str, Dict[str, T]]
- data_send: Dict[str, T]
- data_send_prev: Dict[str, T]
- entry: Dict[str, List[str]]
- lock: RLock
- req: Dict[str, Dict[str, int]]
- req_info: Dict[str, Dict[str, R]]
- self_member_name: str
- should_send: Callable