FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
vapi Namespace Reference

Forward declarations. More...

Data Structures

class  Common_req
 Class representing common functionality of a request - response state and context. More...
 
class  Connection
 Class representing a connection to VPP. More...
 
class  Dump
 Class representing a dump request - zero or more identical responses to a single request message. More...
 
class  Event_registration
 Class representing event registration - incoming events (messages) from vpp as a result of a subscription (typically a want_* simple request) More...
 
class  Msg
 Class representing a message stored in shared memory. More...
 
class  Msg_not_available_exception
 
class  Request
 Class representing a simple request - with a single response message. More...
 
class  Result_set
 Class representing iterable set of responses of the same type. More...
 
class  Unexpected_msg_id_exception
 
struct  vapi_has_payload_trait
 
struct  vapi_has_payload_trait< T, vapi_void_t< decltype(&T::payload)> >
 

Typedefs

template<class... T>
using vapi_void_t = void
 

Enumerations

enum  vapi_response_state_e { RESPONSE_NOT_READY, RESPONSE_READY, RESPONSE_NO_RESPONSE }
 

Functions

template<typename M >
void vapi_swap_to_be (M *msg)
 
template<typename M >
void vapi_swap_to_host (M *msg)
 
template<typename M , typename... Args>
Mvapi_alloc (Connection &con, Args...)
 
template<typename M >
vapi_msg_id_t vapi_get_msg_id_t ()
 
template<typename M >
void vapi_msg_set_msg_id (vapi_msg_id_t id)
 

Detailed Description

Forward declarations.

Typedef Documentation

template<class... T>
using vapi::vapi_void_t = typedef void

Definition at line 504 of file vapi.hpp.

Enumeration Type Documentation

Enumerator
RESPONSE_NOT_READY 

response not ready yet

RESPONSE_READY 

response to request is ready

RESPONSE_NO_RESPONSE 

no response to request (will never come)

Definition at line 76 of file vapi.hpp.

Function Documentation

template<typename M , typename... Args>
M* vapi::vapi_alloc ( Connection con,
Args...   
)
template<typename M >
vapi_msg_id_t vapi::vapi_get_msg_id_t ( )
template<typename M >
void vapi::vapi_msg_set_msg_id ( vapi_msg_id_t  id)

Definition at line 512 of file vapi.hpp.

template<typename M >
void vapi::vapi_swap_to_be ( M msg)
template<typename M >
void vapi::vapi_swap_to_host ( M msg)