Lines Matching refs:hostname
283 if (conn->hostname.s) { in MYSQLND_METHOD()
284 mnd_pefree(conn->hostname.s, pers); in MYSQLND_METHOD()
285 conn->hostname.s = NULL; in MYSQLND_METHOD()
549 MYSQLND_METHOD(mysqlnd_conn_data, get_scheme)(MYSQLND_CONN_DATA * conn, MYSQLND_CSTRING hostname, M…
554 if (hostname.l == sizeof("localhost") - 1 && !strncasecmp(hostname.s, "localhost", hostname.l)) {
563 if (hostname.l == sizeof(".") - 1 && hostname.s[0] == '.') {
576 transport.l = mnd_sprintf(&transport.s, 0, "tcp://%s:%u", hostname.s, port);
587 MYSQLND_CSTRING hostname,
617 hostname.s?hostname.s:"", username.s?username.s:"", database.s?database.s:"", port, mysql_flags,
648 if (!hostname.s || !hostname.s[0]) {
649 hostname.s = "localhost";
650 hostname.l = strlen(hostname.s);
670 transport = conn->m->get_scheme(conn, hostname, &socket_or_pipe, port, &unix_socket, &named_pipe);
720 conn->hostname.s = mnd_pestrndup(hostname.s, hostname.l, conn->persistent);
721 if (!conn->hostname.s) {
725 conn->hostname.l = hostname.l;
728 mnd_sprintf(&p, 0, "%s via TCP/IP", conn->hostname.s);
814 const MYSQLND_CSTRING hostname,
830 if (hostname.l > 0) {
831 mysqlnd_options4(conn_handle, MYSQL_OPT_CONNECT_ATTR_ADD, "_server_host", hostname.s);
833 …ret = conn->m->connect(conn, hostname, username, password, database, port, socket_or_pipe, mysql_f…
2679 MYSQLND_CSTRING hostname = { host, host? strlen(host) : 0 }; local
2696 …ret = conn_handle->m->connect(conn_handle, hostname, username, password, database, port, socket_or…