[958] in linux-net channel archive
Re: telnet/ftp/rlogin/rsh not working between Linux machines. (fwd)
daemon@ATHENA.MIT.EDU (Arnt Gulbrandsen)
Tue Aug 22 21:56:16 1995
Date: Fri, 22 Aug 2003 08:53:15 +0200
To: Mike Shaver <shaver@neon.ingenia.com>
Cc: almesber@lrc.epfl.ch (Werner Almesberger), linux-net@vger.rutgers.edu
In-Reply-To: <199508211113.HAA01191@neon.ingenia.com> (by shaver@neon.ingenia.com)
From: Arnt Gulbrandsen <agulbra@troll.no>
> Or you could add a hear() system call that would return a struct
> something *, which could be checked for stuff like source and
> destination address and port before calling accept()...
Not sufficient. When you've checked it, what can you do? accept()
now or later. getpeername() on a select()able socket can do what you
suggest hear() should, but a reject() call is absolutely necessary.
--Arnt