Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a device-host messaging service #11

Merged
merged 3 commits into from
Nov 29, 2024
Merged

Implement a device-host messaging service #11

merged 3 commits into from
Nov 29, 2024

Conversation

solidpixel
Copy link
Contributor

Add a basic building block that can be used to let layers act as a network client to a server running on the host.

The design for this module exposes the server as a number of message-oriented endpoint services which are multiplexed on a single socket communications channel. Support message types are synchronous send (tx), asynchronous send (tx_async), and synchronous send-receive (tx_rx).

On Android the device-side socket can use an abstract Unix domain sockets, which can connect to a TCP/IP socket on the host when using "adb reverse" to proxy the connection. On Linux the device-side socket can directly use TCP/IP.

The default host server, which provides some basic services out-of-the-box, is implemented in Python. Client-side implementations of higher-level services, such as a virtual file system, will be provided in follow-on PRs.

@solidpixel solidpixel merged commit 1681c82 into main Nov 29, 2024
5 checks passed
@solidpixel solidpixel deleted the network_comms branch November 29, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant