Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2000 16:39:10 -0500
From:      "Jacques A. Vidrine" <n@nectar.com>
To:        freebsd-net@freebsd.org
Subject:   getaddrinfo and the UNIX domain
Message-ID:  <20001028163909.A77420@hamlet.nectar.com>

next in thread | raw e-mail | index | archive | help
Hi,

Calling getaddrinfo like the following:

        memset(&hints, 0, sizeof(hints));
        hints.ai_flags    = AI_PASSIVE;
        hints.ai_family   = PF_UNSPEC;
        hints.ai_socktype = SOCK_STREAM;

        getaddrinfo(NULL, "/tmp/some-socket", &hints, &res);

will result in `servname not supported for ai_socktype'.

How should this work?

OpenLDAP 2.x uses getaddrinfo in this fashion.

I note that calling getaddrinfo with ai_family = PF_UNIX also fails.

Thanks,
-- 
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001028163909.A77420>