Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Reply Code is not valid

www.cryer.info
Managed Newsgroup Archive

Re: Reply Code is not valid

Subject:Re: Reply Code is not valid
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 12 Feb 2008 19:16:43

"Kendrick" <kkendrick@harbornet.com> wrote in message
news:47b2327c@newsgroups.borland.com...

> procedure TfmMain.SendClientMessage
>        (var aMsg: TMessage; const aStr: string = '';
>         const showTime: boolean = False; const log: boolean = True);

Where is SendClientMessage() being called from, though?  Your code suggests
that it is not being called from within the OnCommand event handler of a
CommandHandler item.  If your server code is sending its own messages to
clients at arbitrary times, then they can overlap any responses that the
server happens to be sending in reply to client-issued commands.  You are
not protecting your server connections from that scenerio.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive