Daniel blog

Sounds like `ns_conn isconnected` is more limited. Does it just tell us that we are in a connection thread as opposed to a thread used for scheduled tasks etc.

Our use of ns_conn flags actually tells us if the TCP socket has been closed.