Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: TIdTrivialFTPServer and multi-homed server?
| Subject: | Re: TIdTrivialFTPServer and multi-homed server? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 13 Oct 2006 02:15:58 |
"Philippe Auphelle" <pauphelle.No.Spam.Please@wanadoo.fr> wrote in message
news:452f4bfb@newsgroups.borland.com...
> A LAN analyzer session confirms that the server behaves normally
> when OnReadFile returns True, but doesn't send anything on either
> link when OnReadFile returns with GrantAccess set to False.
For the OnReadFile event to be triggered to begin with, the receiving socket
has to be valid, and the remote IP/Port has to be reported by the OS and be
valid for that event. When the OnReadFile handler exits, the reply is sent
back on the same socket to the same IP/Port that sent the request. If those
values are present and accurate, then there is no way for the analyzer to
not show a reply being sent.
Incidently, do you have any anti-virus programs running at the time of your
tests? Either McAfee or Norton (I forget which one) is known to interfer
with Indy sockets sometimes.
Gambit