aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/udp_zero_copy.cpp
Commit message (Collapse)AuthorAgeFilesLines
* host: Update code base using clang-tidyMartin Braun2021-03-041-10/+10
| | | | | | | | | The checks from the new clang-tidy file are applied to the source tree using: $ find . -name "*.cpp" | sort -u | xargs \ --max-procs 8 --max-args 1 clang-tidy --format-style=file \ --fix -p /path/to/compile_commands.json
* uhd: Apply clang-format against all .cpp and .hpp files in host/Martin Braun2020-03-031-5/+3
| | | | | Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
* uhd: Replace usage of boost smart pointers with C++11 counterpartsMartin Braun2019-11-261-6/+6
| | | | | | | | | | | | | | | | | | | This removes the following Boost constructs: - boost::shared_ptr, boost::weak_ptr - boost::enable_shared_from_this - boost::static_pointer_cast, boost::dynamic_pointer_cast The appropriate includes were also removed. All C++11 versions of these require #include <memory>. Note that the stdlib and Boost versions have the exact same syntax, they only differ in the namespace (boost vs. std). The modifications were all done using sed, with the exception of boost::scoped_ptr, which was replaced by std::unique_ptr. References to boost::smart_ptr were also removed. boost::intrusive_ptr is not removed in this commit, since it does not have a 1:1 mapping to a C++11 construct.
* uhd: add udp boost asio implementation of transport interfaceCiro Nishiguchi2019-11-261-119/+40
|
* Device3: Fix MTU and default frame sizesMichael West2019-07-181-0/+5
| | | | | | | | | | The latest changes to the get_*x_stream() functions to calculate the MTU for the channel caused default frame size values to be ignored. This change fixes that by changing the key from "send/recv_frame_size" to "mtu" and then changing the implementations of make_transport() constrain the frame size values based on the "mtu" value as well as any device and/or transport-specific limits. Signed-off-by: Michael West <michael.west@ettus.com>
* transport: udp: Fix buffer size warningLars Amsel2019-02-271-2/+2
| | | | | | When using a buffer size smaller than recommended, a warning would be printed with the wrong value (it would print the default value, not the actual value).
* lib: transport: apply clang-formatBrent Stapleton2019-01-181-200/+239
| | | | | | | | | | This is a continuation of 967be2a4. $ find host/lib/transport -iname *.hpp -o -iname *.cpp |\ xargs clang-format -i -style=file Skipping host/lib/transport/nirio/ because of build errors. $ git checkout host/lib/transport/nirio
* udp_zero_copy: add default xport params.Trung Tran2018-09-131-14/+58
|
* X300: Change Ethernet bufferingMichael West2018-07-251-22/+32
| | | | | | | Ethernet buffering is now done so that most of the buffering is done in the socket buffers and multiple frames are only used to support the receive side offload of the socket I/O. Eliminates dropped packets at high full duplex rates.
* lib: Purge all references to boost::this_thread::sleep()Martin Braun2018-04-301-2/+3
| | | | Replace with std::this_thread::sleep_for().
* lib: move atomic.hpp and system_time.hpp to uhdlibMartin Braun2018-04-061-1/+1
|
* transport: Demote UDP socket buffer size log message to TRACEMartin Braun2018-03-301-1/+1
| | | | | Note: When socket buffers are incorrectly size, a WARNING is still printed.
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* Fix build with Boost 1.66ilovezfs2017-12-191-1/+1
| | | | Thanks to FX Coudert for suggesting this fix.
* udp: Modify log messages of UDP transportMartin Braun2017-10-041-5/+12
| | | | | - Remove multi-line log message for socket creation - Include local addr and port in trace messages
* udp: Added option to query local address of socketMartin Braun2017-10-041-1/+10
|
* transports: Added get_local_port() method to UDP transportsAndrej Rode2017-04-141-0/+1
|
* logging: remove unecessery newlines in log messagesAndrej Rode2017-04-071-1/+1
|
* logging: Demoted a number of DEBUG messages to TRACEMartin Braun2017-04-051-1/+1
|
* Merge branch 'maint'Martin Braun2017-03-241-8/+8
|\
| * UDP: Set default socket buffer size to number of frames * 9000 (maximum ↵michael-west2017-03-211-8/+8
| | | | | | | | Ethernet MTU)
* | utils: introduce new logging API and remove msg APIAndrej Rode2017-02-201-7/+7
|/
* transport: Removed some superfluous variablesMartin Braun2016-11-281-1/+1
|
* Fix for BUG 869: UHD: Unhandled exceptions during destruction of multi_usrp ↵michael-west2015-08-051-1/+8
| | | | | | | object cause application to terminate - Prevented libusb_zero_copy_single from submitting transfers after libusb reports an error - Made error messages in libusb_zero_copy and udp_zero_copy more descriptive
* Merging USRP X300 and X310 support!!Ben Hilburn2014-02-041-16/+47
|
* Squashed merge of Coverity fixes.Ben Hilburn2013-11-271-1/+2
|
* udp: fix ENOBUFS with send/retry for udp socketJosh Blum2013-01-151-2/+16
|
* transport: switch to the atomic claimerJosh Blum2012-07-021-1/+1
| | | | | This wont have much effect because the buffers are not currently used in any queue by the caller
* uhd: squashed transport workJosh Blum2012-04-231-81/+58
|
* uhd: make atlbase options for msvc buildJosh Blum2012-03-141-4/+5
|
* udp: added check_registry_for_fast_send_threshold to non-wsa transportJosh Blum2011-09-081-0/+30
|
* udp: replaced callbacks in zero copy interface by giving direct queue accessJosh Blum2011-06-141-38/+19
| | | | | The managed receive buffer knows how to restore itself into the queue when released. The managed send buffer knows how to ::send itself and restore when commited.
* uhd: replace managed buffer shared pointer w/ intrusive pointer to reduce ↵Josh Blum2011-05-141-10/+2
| | | | overhead
* uhd: replaced warning post with calls to UHD_MSG(warning)Josh Blum2011-05-041-3/+3
| | | | | The message api can support warnings, error, and status messages. The default handler is to stdio, but the user can change this.
* uhd: replaced many conditional prints with UHD_LOG usageJosh Blum2011-05-041-7/+6
|
* udp: return the managed recv buffer to the buffer queue on timeoutJosh Blum2011-03-011-0/+2
|
* udp: try non-blocking recv first for performanceJosh Blum2011-02-201-10/+14
|
* udp: update docs for transport, create common header for wait implementationJosh Blum2011-02-201-0/+304
Reimplemented simple udp transport with one impl class. Moved wait for ready/select implementation into common header. Important note on select, timeval should have usecs < 1 second or it may error on some platforms. Fixed in this implementation.