| 6885 | } |
| 6886 | |
| 6887 | char * |
| 6888 | PQhostaddr(const PGconn *conn) |
| 6889 | { |
| 6890 | if (!conn) |
| 6891 | return NULL; |
| 6892 | |
| 6893 | /* Return the parsed IP address */ |
| 6894 | if (conn->connhost != NULL && conn->connip != NULL) |
| 6895 | return conn->connip; |
| 6896 | |
| 6897 | return ""; |
| 6898 | } |
| 6899 | |
| 6900 | char * |
| 6901 | PQport(const PGconn *conn) |
no outgoing calls
no test coverage detected