stream-face: invoke shutdown() before closing the socket.

As recommended by boost::asio documentation.
Also refactor the shutdown logic into its own method.

Change-Id: I033de350a9cb659439034f7b5bb36031cda87a25
1 file changed
tree: 15b75e35b667739a8d97f3bf02815d3c02299cf7
  1. .waf-tools/
  2. daemon/
  3. docs/
  4. tests/
  5. .gitignore
  6. .travis.yml
  7. COPYING
  8. INSTALL.md
  9. README-dev.md
  10. README.md
  11. waf
  12. wscript
README.md

NFD - Named Data Networking Forwarding Daemon