libnetconf2
3.5.4
NETCONF server and client library in C.
|
To send RPCs on a session, you simply create an RPC, send it using nc_send_rpc(), and then wait for a reply using nc_recv_reply(). If you are subscribed, there are 2 ways of receiving notifications. Either you wait for them the same way as for standard replies with nc_recv_notif() or you create a dispatcher with nc_recv_notif_dispatch() that asynchronously (in a separate thread) reads notifications and passes them to your callback.
Available in nc_client.h.