Changed ns_sock_to_str() signature: flags to show local/remote address, port number