CESNET / libnetconf

C NETCONF library
Other
113 stars 84 forks source link

I suggest send hello msg in multi-line #266

Closed chengdingshan closed 7 years ago

chengdingshan commented 7 years ago

current the netconf2 server will send hello msg just in one line, it is bad for human read. eg. <hello xmlsns=...><capabilities><capability>...</capability><capability>...</capability><capability>...</capability><capability>...</capability><capability>...</capability><capability>...</capability><capability>...</capability><capability>...</capability> ...

I suggest it print in well-formed multi-line <hello> <capabilities> <capability>...</capability> <capability>...</capability> <capability>...</capability> <capability>...</capability> ...

rkrejci commented 7 years ago

you can format it by other tools, the message is designed for machine processing and avoiding formatting bytes save transport line. By the way, you are talking about netconf2 server, but this is libnetconf project issue tracker which has nothing to do with netconf2 server.