/* * call-seq: * conn.host() * * Returns the connected server name. */ static VALUE pgconn_host(obj) VALUE obj; { char *host = PQhost(get_pgconn(obj)); if (!host) return Qnil; return rb_tainted_str_new2(host); }