summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/controlport
Commit message (Collapse)AuthorAgeFilesLines
* runtime: include boost/format where usedMarcus Müller2021-09-071-0/+1
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* global: remove iostream from all files not use cout|cerr|cin|clogMarcus Müller2021-06-173-3/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* ctrlport: apply same clang-tidy rules as to rest of codebaseMarcus Müller2021-01-282-4/+5
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* RPC fixes to allow using Thrift-0.13A. Maitland Bottoms2020-12-191-2/+6
| | | | | | | Adds ability for master to build with newer Thrift versions by checking availability of thrift include files. (Also spelling fix: Thift -> Thrift) And fix up logging for rpcserver_thrift class.
* controlport: include <algorithm> when using std::for_each()Daniel Estévez2020-07-301-0/+1
| | | | | std::for_each() is defined in <algorithm>, so that if it is not included, it doesn't build in some platforms
* runtime: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-132-19/+45
|
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-012-1/+2
| | | | | | | | | | | | | | | | | | | Most of this code is automated code changes: ``` set -e SUB="s/dummy/dummy/" for i in shared_ptr make_shared dynamic_pointer_cast weak_ptr enable_shared_from_this get_deleter; do SUB="$SUB;s/boost::$i/std::$i/g" done SUB="$SUB;s^#include <boost/shared_ptr.hpp>^#include <memory>^g" SUB="$SUB;s^namespace boost^namespace std^g" find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.cxx" -o -name "*.py" \) -print0 | xargs -0 sed -i "$SUB" ``` Only one manual change. In `./gr-fec/lib/fec_mtrx_impl.cc`, add `#include <algorithm>`.
* Update license header to SPDX formatdevnulling2020-01-279-117/+9
|
* Remove newlines from exception messagesThomas Habets2020-01-011-1/+1
|
* clang-format: Ordering all the includesMarcus Müller2019-08-094-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-097-575/+535
|
* ctrlport-thrift: don't install example .conf to etc, but to docsMarcus Müller2019-03-041-0/+3
|
* cmake: Update to modern CMake usageAndrej Rode2019-03-041-104/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes using target based setting of includes and link libraries. This will transitively add the includes and linking flags to dependent targets. This is still a work in progress since only the dynamic libraries have been touched and not all of include_directories directives are gone yet. cmake: remove GR_INCLUDE_SUBDIRECTORY macro Previously this macro was used to inject subdirectories in the current CMake namespace. This is generally undesired and pollutes the current context. previously GNU Radio CMake had a non-default option ENABLE_STATIC_LIBS to build both, shared libraries and static libraries. This seems to be a construction taken over from autotools and serves no purpuose in CMake and complicates the library building. cmake: remove GR_LIBTOOL and la generation support This looks like it was primarily used to support projects using autotools, but comments state that the generated .la files aren't compatible with autotools anyway. cmake: Bump required CMake version to 3.8 UseSWIG cmake uses syntax which requires at least CMake 3.8 and is non-trivial to change
* Merge branch 'master' into nextMartin Braun2018-02-031-1/+1
|\
| * Merge branch 'maint'Martin Braun2018-02-031-1/+1
| |\
| | * Replaced redmine URLs.Marcus Müller2018-02-031-1/+1
| | |
* | | Merge branch 'master' into nextJohnathan Corgan2017-06-271-3/+3
|\| |
| * | Merge branch 'maint'Johnathan Corgan2017-06-271-3/+3
| |\|
| | * Revert "Fixed storing references to temporary values in RPC infrastructure"Johnathan Corgan2017-06-271-3/+3
| | | | | | | | | | | | This reverts commit a16ed67b5dae099c6ac1447c000f15765b13422f.
* | | Merge branch 'master' into nextJohnathan Corgan2017-06-271-3/+3
|\| |
| * | Merge branch 'maint'Johnathan Corgan2017-06-271-3/+3
| |\|
| | * Fixed storing references to temporary values in RPC infrastructureMarcus Müller2017-06-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The RPC aggregator and friends were taking callback objects passed by value, and then internally called, again by value, constructors which initialized reference fields to these parameters. This has the effect of storing references to temporary objects. Chances are, no-one is using that code, or compiler UB saved our collective behinds. In any case, we might need to more carefully dissect the RPC code. There be dragons.
* | | runtime: replace std::auto_ptr usage with std::unique_ptrJohnathan Corgan2017-04-171-2/+2
| | |
* | | Merge branch 'master' into nextJohnathan Corgan2017-03-051-14/+14
|\| | | | | | | | | | | | | | Conflicts: gnuradio-runtime/python/gnuradio/ctrlport/CMakeLists.txt
| * | Helped CMake maintain a clear dependency treeMarcus Müller2017-01-231-14/+14
| |/ | | | | | | | | | | | | | | by converting EXECUTE_COMMAND directives to add_custom_command with well-defined OUTPUT. This is all that was necessary to make GNU Radio build with Ninja in place of GNU Make.
* | Merge branch 'master' into nextJohnathan Corgan2016-10-232-5/+4
|\| | | | | | | | | | | Conflicts: gr-atsc/CMakeLists.txt gr-atsc/swig/CMakeLists.txt
| * Fixed initialization order of ctrlport static variablesKyle Unice2016-10-212-5/+4
| |
* | cmake: nuke cpack from existenceJohnathan Corgan2016-08-031-1/+0
|/ | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
* controlport: using the 'binary' Thrift data type to work better with Java.Tom Rondeau2015-12-101-1/+1
| | | | | | Java String class can change data from an arbitrary byte[] object. We use the ByteBuffer class now when passing data to ControlPort's postMessage function, which manages the underlying data properly.
* ctrlport: provides a ControlPort model that connects directly with aTom Rondeau2015-10-163-0/+94
| | | | | | | | block's message handler. We still need to register this in setup_rpc, but there might be a way to automate the registering of this during set_msg_handler if ControlPort is enabled.
* controlport: Adding support for building Java clients.Tom Rondeau2015-07-242-2/+2
| | | | | | | Java has a hard time with unions (or our way of doing things produces problems in Java). Using a struct instead does not change any server-side or client-side code, and only seems to increase the network packet size by 2 bytes.
* Merge remote-tracking branch 'mmueller/ctrlport_thrift_include_directories'Johnathan Corgan2015-06-221-0/+1
|\
| * made the controlport CMakeLists use thrift includedirsMarcus Müller2015-06-181-0/+1
| |
* | controlport: make sure to use to configured d_logger in thrift code.Tom Rondeau2015-06-171-1/+1
|/
* controlport: this fixes a complaint by newer versions of Boost.Tom Rondeau2015-05-061-1/+1
|
* controlport: android: cleaning up; better logs; help to support android.Tom Rondeau2015-05-061-1/+1
|
* controlport: info on a (possible) Thrift bug.Tom Rondeau2015-04-162-0/+139
| | | | A patch for Thrift itself and a README to provide some explanation.
* controlport: cleanup and thread safety.Nate Goergen2015-04-162-9/+13
| | | | | | Cleaned up some of the templates for only the necessary stuff. Adds mutex lock protections around getters and setters.
* cmake: fix case for ctrlport when no backends installedTom Rondeau2015-04-151-0/+11
|
* controlport: cleaner, more robust interface for buffer gets.Nate Goergen2015-04-022-10/+6
|
* controlport: avoid copy of outknobs (a temporary).Nate Goergen2015-04-021-15/+6
|
* controlport: ensure proper ctrlport shutdown.Nate Goergen2015-04-021-0/+4
| | | | | Create instance of rpcmanager to ensure proper ctrlport shutdown and some minor cleanup
* controlport: documentation cleanupNate Goergen2015-04-021-8/+3
|
* controlport: cleanupNate Goergen2015-04-021-4/+11
| | | | | | - removal of unused strings 'controlport name' and 'endpoint name'. - Moved default_buffer_size constant from server_template, which is where boot specific constant are currently defined.
* controlport: Some documentationNate Goergen2015-04-022-2/+16
|
* controlport: renamed some functions for clairityNate Goergen2015-04-021-5/+5
|
* controlport: cleanupNate Goergen2015-04-022-53/+21
|
* controlport: more cleanup and conveniencesTom Rondeau2015-04-021-4/+1
|
* controlport: moving the generation of the Thrift endpoint string to the ↵Nate Goergen2015-04-021-1/+33
| | | | | | | | | | | | | application_started() function. Includes moving the call that logs the generated endpoint. This allows the application_base::kickoff() function to wait until the Thrift runtime publishes the port selected by bind(), when a pseudorandom / unused port number is configured (i.e. port=0, the default setting). Once bind()'s final port number is available, the endpoint string may be generated and the ControlPort Thrift interface may be started.
* controlport: changing the default port number on the Thrift interface to zero.Nate Goergen2015-04-021-1/+1
| | | | | | | | | | | | This allows allows the OS - specifically bind() - to select an ephemeral / unused port number. Next, going to investigate using getsockname() to determine the port number selected by the OS and ensure that the Thrift endpoint string reflects the correct port number. Also going to see if we can publish the actual hostname of the machine from either the uname() or gethostname() functions.