Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!nntprelay.mathworks.com!howland.erols.net!news.maxwell.syr.edu!eerie.fr!cnusc.fr!univ-lyon1.fr!jussieu.fr!oleane!weld.news.pipex.net!pipex!warm.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet From: brian@shift.utell.net (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Listening at a socket Date: 20 Jun 1997 09:44:38 GMT Organization: Awfulhak Ltd. Lines: 27 Message-ID: <5odje6$bb6@ui-gate.utell.co.uk> References: <5oblqi$4re@ui-gate.utell.co.uk> Reply-To: brian@awfulhak.org, brian@utell.co.uk NNTP-Posting-Host: shift.utell.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43204 In article <5oblqi$4re@ui-gate.utell.co.uk>, brian@shift.utell.net (Brian Somers) writes: > This *has* to be a dumb question, but can anyone tell me > how an OS, once it's received a packet for a given port > X, can distinguish which process of all the processes that > are using that port should get that packet. > > For example, if I run an ftp server, I have my ftpd > listening on *.21. If I currently have 2 established > connections from the same remote machine, I'll have two > additional ftpd processes running (forked from the first). > When a packet is received from the other machine destined > for port 21, how does the OS decide which process to deliver > the packet to ? > > TIA. Thanks for all the replies (here & via email). I was overlooking the fact that the source port & IP are relevent for TCP "established" packets. I knew it was a dump question :-) -- Brian <brian@awfulhak.org> <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour !