Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!hunter.premier.net!www.nntp.primenet.com!nntp.primenet.com!dispatch.news.demon.net!demon!mail2news.demon.co.uk!beckley.demon.co.uk!iwta From: Ian W Taylor <iwta@beckley.demon.co.uk> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Q. on socket() programming Date: Tue, 29 Oct 96 20:52:34 GMT Organization: Glencarn Ltd. Lines: 12 Message-ID: <846622354snz@beckley.demon.co.uk> Reply-To: iwta@beckley.demon.co.uk X-Mail2News-User: iwta@beckley.demon.co.uk X-Mail2News-Path: relay-1.mail.demon.net!post.demon.co.uk!relay-3.mail.demon.net!beckley.demon.co.uk X-Newsreader: Demon Internet Simple News v1.30 Can you restrict which clients a server process will service using bind() ?. If not is there a simple way of doing it other than getting the clients IP addr from the accept() call and then getting its name from gethostbyaddr(), and if it is not acceptable just close()ing the socket. -- Regards, Ian T.