diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-01-03 15:05:48 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-01-04 14:17:09 -0800 |
commit | 83dd47dc882421f96830fa55bd86405d1d80907f (patch) | |
tree | d4dd5f75c027f25351ba0bcb652e6a5a547706f7 /host/lib/usrp/mpmd/mpmd_impl.hpp | |
parent | f25b37900561a50b816d545605b898207d4ca5b5 (diff) | |
download | uhd-83dd47dc882421f96830fa55bd86405d1d80907f.tar.gz uhd-83dd47dc882421f96830fa55bd86405d1d80907f.tar.bz2 uhd-83dd47dc882421f96830fa55bd86405d1d80907f.zip |
mpmd: Allow user-overrides for MPM ports
Adds two device args: discovery_port and rpc_port. Both are integers
which override the respective constants.
Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_impl.hpp')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_impl.hpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.hpp b/host/lib/usrp/mpmd/mpmd_impl.hpp index 14051c922..79ab18aa3 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.hpp +++ b/host/lib/usrp/mpmd/mpmd_impl.hpp @@ -146,10 +146,16 @@ class mpmd_mboard_impl class mpmd_impl : public uhd::usrp::device3_impl { public: - //! Port on which the discovery process is listening - static const size_t MPM_DISCOVERY_PORT = 49600; - //! Port on which the RPC process is listening - static const size_t MPM_RPC_PORT = 49601; + //! Port on which the discovery process is listening (default value, it is + // user-overridable) + static const size_t MPM_DISCOVERY_PORT; + //! Device arg key to override the discovery port + static const std::string MPM_DISCOVERY_PORT_KEY; + //! Port on which the RPC process is listening (default value, it is user- + // overridable) + static const size_t MPM_RPC_PORT; + //! Device arg key to override the RPC port + static const std::string MPM_RPC_PORT_KEY; //! This is the command that needs to be sent to the discovery port to // trigger a response. static const std::string MPM_DISCOVERY_CMD; |