| # AirMouse :network module | |
| Provides coroutine-based TCP client and UDP discovery client for the AirMouse Android app. | |
| Files: | |
| - `Message.kt` - serializable message DTOs | |
| - `TcpClient.kt` - coroutine-friendly TCP client (basic) | |
| - `UdpDiscoveryClient.kt` - sends `AIRMOUSE_DISCOVER` and waits for `DiscoveryResponse` JSON | |
| Usage (example): | |
| ```kotlin | |
| val client = TcpClient("192.168.1.10", 8080, onMessage = { line -> /* handle */ }) | |
| client.start() | |
| // send: use coroutine scope to call sendMessage | |
| ``` | |
| The module is intentionally small and focused; further features (ACK handling, pending receipts, reconnection policy) will be added in follow-up steps. | |
Xet Storage Details
- Size:
- 653 Bytes
- Xet hash:
- 5dfd0376e0d84913cd7db693f3e70b242ece4174960fa8aad6176c6e2155dd7a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.