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.

- nc_ps_new()
- nc_ps_add_session()
- nc_ps_del_session()
- nc_ps_session_count()
- nc_ps_free()
- nc_ps_poll()
- nc_ps_clear()
- nc_ps_accept_ssh_channel()
- nc_session_accept_ssh_channel()