Lines Matching refs:addrstr
3714 static int vnc_display_get_address(const char *addrstr, in vnc_display_get_address() argument
3731 if (strncmp(addrstr, "unix:", 5) == 0) { in vnc_display_get_address()
3733 addr->u.q_unix.path = g_strdup(addrstr + 5); in vnc_display_get_address()
3746 port = strrchr(addrstr, ':'); in vnc_display_get_address()
3750 port = addrstr; in vnc_display_get_address()
3756 hostlen = port - addrstr; in vnc_display_get_address()
3766 if (hostlen && addrstr[0] == '[' && addrstr[hostlen - 1] == ']') { in vnc_display_get_address()
3767 inet->host = g_strndup(addrstr + 1, hostlen - 2); in vnc_display_get_address()
3769 inet->host = g_strndup(addrstr, hostlen); in vnc_display_get_address()
3774 if (g_str_equal(addrstr, "") || in vnc_display_get_address()
3775 g_str_equal(addrstr, "on")) { in vnc_display_get_address()