FD.io VPP
v18.10-34-gcce845e
Vector Packet Processing
|
Class representing a connection to VPP. More...
Public Member Functions | |
Connection (void) | |
Connection (const Connection &)=delete | |
~Connection (void) | |
bool | is_msg_available (vapi_msg_id_t type) |
check if message identified by it's message id is known by the vpp to which the connection is open More... | |
vapi_error_e | connect (const char *name, const char *chroot_prefix, int max_outstanding_requests, int response_queue_size, bool handle_keepalives=true) |
connect to vpp More... | |
vapi_error_e | disconnect () |
disconnect from vpp More... | |
vapi_error_e | get_fd (int *fd) |
get event file descriptor More... | |
vapi_error_e | dispatch (const Common_req *limit=nullptr, u32 time=5) |
wait for responses from vpp and assign them to appropriate objects More... | |
vapi_error_e | dispatch (const Common_req &limit) |
convenience wrapper function More... | |
vapi_error_e | wait_for_response (const Common_req &req) |
wait for response to a specific request More... | |
Friends | |
template<typename Req , typename Resp , typename... Args> | |
class | Request |
template<typename Req , typename Resp , typename... Args> | |
class | Dump |
template<typename M > | |
class | Result_set |
template<typename M > | |
class | Event_registration |
template<typename M > | |
class | Msg |
template<typename M , typename... Args> | |
M * | vapi_alloc (Connection &con, Args...) |
Class representing a connection to VPP.
After creating a Connection object, call connect() to actually connect to VPP. Use is_msg_available to discover whether a specific message is known and supported by the VPP connected to.
|
inline |
|
delete |
|
inline |
|
inline |
connect to vpp
name | application name |
chroot_prefix | shared memory prefix |
max_queued_request | max number of outstanding requests queued |
handle_keepalives | handle memclnt_keepalive automatically |
Definition at line 202 of file vapi.hpp.
|
inline |
|
inline |
wait for responses from vpp and assign them to appropriate objects
limit | stop dispatch after the limit object received it's response |
Definition at line 250 of file vapi.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |