|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_DUMP_CMD_H__
17 #define __VOM_DUMP_CMD_H__
42 template <
typename MSG>
77 return (
m_dump->get_result_set().begin());
87 return (
m_dump->get_result_set().end());
95 std::future_status status;
96 std::future<rc_t> result;
99 status = result.wait_for(std::chrono::seconds(5));
101 if (status != std::future_status::ready) {
105 return (result.get());
The VPP Object Model (VOM) library.
const static rc_t OK
The HW write was successfull.
const_iterator begin()
Constant iterator to the start of the records retunred during the dump.
unsigned int(* get_msg_size_t)(void *)
A function type def for calculating a message's size.
std::unique_ptr< MSG > m_dump
The VAPI event registration.
void succeeded()
Dump commands should not be issued whilst the HW is disabled.
The pipe to VPP into which we write the commands.
A representation of the connection to VPP.
rc_t wait()
Wait for the issue of the command to complete.
const static rc_t TIMEOUT
HW write timedout - VPP did not respond within a timely manner.
typename std::vector< Msg< M >, typename Msg< M >::Msg_allocator >::const_iterator const_iterator
vapi::Result_set< typename MSG::resp_type >::const_iterator const_iterator
const_iterator end()
Constant iterator to the end of the records retunred during the dump.
virtual void retire(connection &con)
Retire/cancel a long running command.
vapi_error_e operator()(MSG &d)
Call operator called when the dump is complete.
dump_cmd()
Default Constructor.
virtual ~dump_cmd()
Destructor.
Error codes that VPP will return during a HW write.
A base class for VPP dump commands.
A representation of a method call to VPP.
std::promise< rc_t > m_promise
The underlying promise that implements the synchornous nature of the command issue.