-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from sean1832/0.3
Feat: Add `post event` action for receiver, enable blender action after received data.
- Loading branch information
Showing
20 changed files
with
585 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import queue | ||
import threading | ||
from typing import Optional, Protocol | ||
|
||
|
||
class Server(Protocol): | ||
uuid: str | ||
data_queue: queue.Queue | ||
error: Optional[Exception] | ||
error_lock: threading.Lock | ||
traceback: Optional[str] | ||
|
||
def start_server(self) -> None: | ||
""" | ||
Start the server in a separate thread. | ||
""" | ||
... | ||
|
||
def stop_server(self) -> None: | ||
""" | ||
Stop the server and close the connections. | ||
""" | ||
... | ||
|
||
def is_running(self) -> bool: | ||
""" | ||
Check if the server is running. | ||
""" | ||
... | ||
|
||
def is_shutdown(self) -> bool: | ||
""" | ||
Check if the server is shutdown. | ||
""" | ||
... |
Oops, something went wrong.