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!howland.erols.net!nntp.crl.com!news3.crl.com!nexp.crl.com!usenet From: "Jordan K. Hubbard" <jkh@FreeBSD.org> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How to open a socket under FreeBSD? Date: Mon, 04 Nov 1996 06:31:05 -0800 Organization: Walnut Creek CDROM Lines: 16 Message-ID: <327DFE29.ABD322C@FreeBSD.org> References: <GORSKI.96Oct26172702@axiom.www.xxx> <550ou1$2u0@anorak.coverform.lan> NNTP-Posting-Host: time.cdrom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 3.0-CURRENT i386) To: brian@awfulhak.demon.co.uk Brian Somers wrote: > The idea is that you create a socket, then either connect it to another > existing socket (via connect) or wait for a connection to occur > (via bind). You can have different kind of sockets - normally either Erm, not *quite* but close. Client creates a socket and connects it to the server address with connect. Server creates a socket, binds it to its address and then waits for new connections on it with accept(). Bind itself does not wait. This all assumes stream sockets, of course, and the connected socket model. :-) -- - Jordan Hubbard President, FreeBSD Project