libnetconf2
libnetconf2 copied to clipboard
Query: Detecting socket errror/closed in netconf session
Hi, I am using libnetconf2 to implement netconf client . my requirement is:
- detecting socket error/closed in netconf session
- try to create new netconf session is there any API to check socket error/closed in netconf session?
Hi,
- There is no API but these situations should be detected using keep-alive packets that are enabled by default.
- There are a few functions for that but you probably want
nc_connect_ssh().
Regards, Michal
keep-alive options has been opened by default?
Hi, yeah, it should be if you use a fairly recent version of libnetconf2.
Regards, Michal