Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions PyStageLinQ/Network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(c) 2022 Jaxcie
This code is licensed under MIT license (see LICENSE for details)
"""

from __future__ import annotations
import asyncio
from . import EngineServices
Expand Down Expand Up @@ -121,11 +122,14 @@ async def _receive_data_loop(self) -> None:

async def _receive_frames(
self,
) -> bool | list[
StageLinQServiceAnnouncementData
| StageLinQReferenceData
| StageLinQServiceRequestService
]:
) -> (
bool
| list[
StageLinQServiceAnnouncementData
| StageLinQReferenceData
| StageLinQServiceRequestService
]
):
response = await self.reader.read(1024)
if len(response) == 0:
# Socket closed
Expand Down
1 change: 1 addition & 0 deletions PyStageLinQ/PyStageLinQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(c) 2022 Jaxcie
This code is licensed under MIT license (see LICENSE for details)
"""

import select
import socket
import time
Expand Down
1 change: 1 addition & 0 deletions tests/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(c) 2022 Jaxcie
This code is licensed under MIT license (see LICENSE for details)
"""

from PyStageLinQ import EngineServices, PyStageLinQ

"""
Expand Down