here there is a test code (test.c)
I compile it with following command:
       gcc client.c test.c -o test -I /usr/include/vpp_plugins
-lvlibmemoryclient -lsvm -lvppinfra -lvlib -lvatplugin -lpthread -lm -lrt
-ldl -lcrypto
and then run it
        sudo ./test
but it stops and does not response ----> so I press ctrl+c to kill it
again when I run it, it gives an error indicating
           "vl_client_connect:230: memclnt_create_reply timeout
            Connect failed: -1"
what is wrong with it?? how should I run the test code??
I think the test code is trying to use C API to get the VPP version. Am I
right??

On Tue, Dec 12, 2017 at 1:25 PM, Klement Sekera -X (ksekera - PANTHEON
TECHNOLOGIES at Cisco) <ksek...@cisco.com> wrote:

> Hi, it's in
>
> src/vpp-api/client
>
> Regards,
> Kement
>
> > -----Original Message-----
> > From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io]
> On
> > Behalf Of Holoo Gulakh
> > Sent: Tuesday, December 12, 2017 10:49 AM
> > To: vpp-dev@lists.fd.io
> > Subject: [vpp-dev] vpp api
> >
> > Hi,
> >
> > In order to use VPP API in python, I use this command
> >
> > "sudo –E LD_LIBRARY_PATH=/vpp/build-root/install-vpp_debug-
> > native/vpp/lib64/libvppapiclient.so python testAPI.py"
> >
> > As you can see in the above command, I should link libvppapiclient.so to
> my
> > code
> >
> > *** My question is that "where is the source code for
> libvppapiclient.so??"
> > I want to inspect source code to see what and how it works ***
> >
> > thanks in advance
>
>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to