X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 4 Mar 2013 10:38:36 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Unix domain accept() and getperrname() doesn't return the client address. Message-ID: <20130304093836.GB5468@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mar 4 12:19, Tanaka Akira wrote: > Hi. > > I found that accept() and getperrname() on a Unix domain socket doesn't > return the client socket address. > The sun_path field of the returned address is empty. > > Is it an intentional behavior? It's not exactly intentional, but known. The socket's peername is not transmitted during the local socket credential exchange. So far the server assumes an unbound socket on the client side because, well, I guess the reason is "nobody asked for it yet". This could probably be implemented with not too much effort, if necessary. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple