First, thank you for making this software and its source available.
I have modified the following three code files to enable loopback support:
- hub4com.cpp
- comhub.h
- comhub.cpp
In hub4com.cpp
- Added support for a --loopback=<Pn> command-line argument
- Modified the usage display condition (since only one port needs to be specified for loopback use)
- Added a Loopback subroutine to handle processing of the loopback route creation request
In comhub.cpp
- Added a Loopback subroutine to handle loopback route creation
In comhub.h
- Added a LoopbackData subroutine that then calls the Loopback subroutine with the routeDataMap
- Added the header info for the comhub Loopback subroutine
I hope this is helpful. If there are any questions, please let me know.
Thank you,
Matthew
Modified hub4com.cpp, comhub.cpp, and comhub.h
Logged In: YES
user_id=918965
Originator: NO
A similar option was already added to CVS version:
--echo-route=<Lst> - send data received from any port from <Lst> back
to this port.