ntcore icon indicating copy to clipboard operation
ntcore copied to clipboard

Implementing a way to send Server connection info

Open ThadHouse opened this issue 8 years ago • 4 comments

One thing I had been thinking about was it would be nice if clients could get information on all the clients connected to the server. One big use case for this is we could print all the connected clients to a widget on the smart dashboard, and we could see if coprocessors connected properly. I can think of a few ways to implement this, and was wondering which one seems the best.

  1. Implement a new Message type, that whenever a new client is connected to the server it sends new connection info to new clients. This would be the hardest to implement and most invasive, but cleanest in the long run.
  2. Send the data over its own NetworkTable value using Raw type. This is actually fairly easily to implement in the NetworkTables code, but we could also potentially add this to WPILib as well if we don't want to pollute NetworkTables.

If we do either of these, it would be nice to have a prebuilt SmartDashboard widget that could read these.

Would either of these be a good idea, or would there be a better way to implement this?

ThadHouse avatar Apr 05 '16 19:04 ThadHouse