🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4547

Re: Blocking Client

#4547
From: Remy Lebeau (TeamB)
Date: Fri, 21 Jan 2005 17:32
19 lines
1754 bytes
"mike" <mfbrowne@earthlink.net> wrote in message
news:41f11362$1@newsgroups.borland.com...

> should I use the synconize() method to process any data messages
> coming into the threaded socket. The processing of the messages
> will require updates to controls and data on forms in the main thread.

You do not need to Synchronize() the processing of the data, only the
updates to the GUI.

> The other thing is, are there any other issues I need to watch for
> when using the threaded approach to reading the socket data.

Don't do any other reading from the socket from any other thread, unless you
synchronize access to the socket.


Gambit
Technical Details
Message-ID: <41f13c2d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41f00ec6$1@newsgroups.borland.com> <41f015df$1@newsgroups.borland.com> <41f01cbc@newsgroups.borland.com> <41f03619$1@newsgroups.borland.com> <41f11362$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8975bc0a9ed70a81
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41f00ec6$1@newsgroups.borland.com> <41f015df$1@newsgroups.borland.com> <41f01cbc@newsgroups.borland.com> <41f03619$1@newsgroups.borland.com> <41f11362$1@newsgroups.borland.com>
Subject: Re: Blocking Client
Date: Fri, 21 Jan 2005 09:32:44 -0800
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41f13c2d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106328621 68.69.17.41 (21 Jan 2005 09:30:21 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail