libnetconf2  1.1.48
NETCONF library for clients and servers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Server communication

Once at least one session is established, an nc_pollsession structure should be created with nc_ps_new(), filled with the session using nc_ps_add_session() and finally polled with nc_ps_poll(). Based on the return value from the poll, further actions can be taken. More sessions can be polled at the same time and any requests received on the sessions are handled internally.

If an SSH NETCONF session asks for a new channel, you can accept this request with nc_ps_accept_ssh_channel() or nc_session_accept_ssh_channel() depending on the structure you want to use as the argument.

Functions List

Available in nc_server.h.