*BSD News Article 97019


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!pumpkin.pangea.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!EU.net!main.Germany.EU.net!news-reader.Dortmund.Germany.EU.net!not-for-mail
From: knob@wizards.staff.Germany.EU.net (Bernard Steiner)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Accept()-ing a connection from a specific IP address...
Date: 28 May 1997 20:23:54 GMT
Organization: Customer of EUnet Germany; Info: info@Germany.EU.net
Lines: 19
Sender: bs@wizards.staff.Germany.EU.net
Message-ID: <5mi48q$641$1@goof.Germany.EU.net>
References: <864144757.18711@dejanews.com> <EAHuuM.129@sphynx.fdn.fr>
    <5mbbbj$ngq@uriah.heep.sax.de> <EAv0wr.ts@sphynx.fdn.fr>
NNTP-Posting-Host: peu-64.do.eunet.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.7
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42325

In article <EAv0wr.ts@sphynx.fdn.fr>,
	causse@sphynx.fdn.fr (Philippe Causse) writes:
> Thanks for the pointing me to the accept(2) manpage but I couldn't guess
> what to put in the control message!
> I'll still spook arround in Comer's books to get the answer but, for the
> moment, I don't have any clue about what should be written in
> the struct cmsghdr :(

I second this proposal of publishing code wrt struct cmsghdr stuff.

The other day when I was feeling really depressed I decided to resolve the
mystery of passing file descriptors from one process to another via unix
domain sockets. Apart from these things mentioned in various books, there
weren't any examples. Moreover, there appear to be subtle differences between
4.3 and 4.4 based systems. It took me about a week to figure this out.

So - any takers for cmsghdr wizardry ?

Bernard