vapi: uds transport support
[vpp.git] / src / vpp-api / vapi / vapi.hpp
index e0dd742..109af9f 100644 (file)
@@ -203,13 +203,14 @@ public:
    *
    * @return VAPI_OK on success, other error code on error
    */
-  vapi_error_e connect (const char *name, const char *chroot_prefix,
-                        int max_outstanding_requests, int response_queue_size,
-                        bool handle_keepalives = true)
+  vapi_error_e
+  connect (const char *name, const char *chroot_prefix,
+          int max_outstanding_requests, int response_queue_size,
+          bool handle_keepalives = true, bool use_uds = false)
   {
-    return vapi_connect (vapi_ctx, name, chroot_prefix,
-                         max_outstanding_requests, response_queue_size,
-                         VAPI_MODE_BLOCKING, handle_keepalives);
+    return vapi_connect_ex (vapi_ctx, name, chroot_prefix,
+                           max_outstanding_requests, response_queue_size,
+                           VAPI_MODE_BLOCKING, handle_keepalives, use_uds);
   }
 
   /**