Skip to content

Conversation

@armelvil
Copy link
Contributor

Enhances the HD-RUM translator control port API with improved feedback and management capabilities:

  • Enhanced response messages: Control port now returns detailed confirmation messages and data listings instead of just "200 OK"
  • List active ports: Added list-ports and query-ports commands to show all configured output ports with their IP addresses and status
  • Duplicate port prevention: Added validation to prevent creating duplicate output ports with the same IP address and port combination

Technical changes:

  • Modified the control port message writer to support rich informational responses
  • Added new callback mechanism for sending detailed data back to telnet/netcat clients
  • Enhanced error handling and validation for port management operations
  • All detailed messages appear both in control port responses and on stdout for logging

This improves the usability of dynamic reflector management via the control port API.

Note: Commits represent iterative development process. Final implementation includes callback-based messaging system for improved control port feedback.

Allow listing control ports
Allow removal by IP address instead of port index #
- add existing port checking to ensure the same client/port may not be added multiple times to a reflector
…to get return messages back out of netcat when a client makes a write request. Without this timer, we don't seem to get proper outputs in terminal sdtout or via netcat.

I need to understand this better so that I can switch it back to a full event-based messaging system as appears to be the original intent, as effectively running a poll doesn't seem efficient to me.
…olling

- ensured error messages are properly terminated with newline
- moved messaging from end of writer function to complete;continue; from within each else condition
- init char buffer for messages at start of else conditions
- increase buffer size of control socket as we might be handling a list of clients now
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