+ /**
+ * Returns whether the node has only announced Tor addresses.
+ */
+ public bool is_tor_only() {
+ bool ret = bindings.NodeInfo_is_tor_only(this.ptr);
+ GC.KeepAlive(this);
+ return ret;
+ }
+
+ /**
+ * Get the string representation of a NodeInfo object
+ */
+ public string to_str() {
+ long ret = bindings.NodeInfo_to_str(this.ptr);
+ GC.KeepAlive(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ string ret_conv = InternalUtils.decodeString(ret);
+ return ret_conv;
+ }
+