Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Making server interact with GUI
| Subject: | Re: Making server interact with GUI |
| Posted by: | "John Carlyle-Clarke" (jpcc@removethis.bigfoot.com) |
| Date: | 11 May 2006 16:28:48 |
"Martin James" <mjames_falcon@dial.pipex.com> wrote in
news:446372f5$1@newsgroups.borland.com:
>>
>> I can't just call context.connection.IOHandler.write in the
>> button event, because that would block the GUI.
>
> The write call would only block if the write call could not be
> completed immediately, ie. the link was down and the write buffer
> space is full.
>
Gotcha. Well, for what is essentially a testbed, this simple solution
may be perfectly acceptable. Anything else would probably be as a
learning excercise!
>
> I'm not surprised that you are having a problem with this - you
> are by no means the first.
I'm glad to head I wasn't missing something obvious!
<Snipped excellent and detailed advice>
I'll digest this and maybe have a stab at implementing something a bit
more adventurous for the fun of it! Like I say this is new ground for
me, and this is as good an opportunity to learn as any...
none