NOTE: running the yp-client code requires that the netconfd-pro server is built with pthreads=1 or that you are running one of the pthreads binary servers.

The action.cpp example code demonstrates the minimal setup to communicate with a NETCONF server, send an action request, and display the results.

Before running the code you should edit sget-system.cpp to apply the cServer and cUsername values that are appropriate for your system, cPassword is prompted for in the example code by a convenience function that asks for your password. If needed this could be edited to use a static string or to use some other authentication mechanism if required.

The code shows the following:

* setup code to deal with any exceptions
* start a NETCONF session to a server for a user – ask them for their password
* some YangAPI object settings are made to make things more readable
* send the request to the server to run a reset action
* receive the OK response from the server into a buffer that can be processed
* close the session to the server
