chipsenkbeil / over-there

Tool to enable editing, management, and execution remotely from "over there."
Apache License 2.0
0 stars 0 forks source link

Support discovery of running instances using SSDP #2

Open chipsenkbeil opened 4 years ago

chipsenkbeil commented 4 years ago

At work, I notice mosh instances persist on the server even when I disconnect. To my knowledge, there isn't a good way to determine what mosh server instances are still running from the client.

Ideally, I'd like to be able to query for existing instances of over-there running via

$ otc discover senkbeil.org

3 instances running
1: senkbeil.org 40001
2: senkbeil.org 40002
3: senkbeil.org 40008

From there, I could reconnect to an instance via

$ otc connect senkbeil.org 40002

Is this possible using [https://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol](Simple Service Discovery Protocol) on port 1900?

There's an old Rust implementation here: https://github.com/GGist/ssdp-rs

chipsenkbeil commented 4 years ago

Need to add standard request/response content of

  1. CapabilitiesRequest
  2. VersionRequest
  3. CapabilitiesResponse(Vec)
  4. VersionResponse(Version)

where the Capability and Version are structs that contain specific information.

This helps us know what an instance is capable of when connecting to it.