Article View: borland.public.cppbuilder.internet.socket
Article #3419Re: Server and Client Sockets
From: Paul
Date: Sun, 02 Oct 2005 22:31
Date: Sun, 02 Oct 2005 22:31
25 lines
2018 bytes
2018 bytes
> Yes. You cannot use nonblocking in a thread as that depend on events > triggered > from a message queue. There is no such queue in your thread. But you could > add such a loop I think. Thought so, back to the drawing board! > As usual the -vcl-owner will delete that component when it is deleted > itself. If you pass NULL then your component should delete it in the > destructor. If you pass 'this' then it will be deleted automatically > provided that OwnerMbx is a vcl object. I'm deleteing the object, so I will leave it at NULL for now. > Seeing that you make one class that can behave both like server > and client I shiver. I have done such things too but now my opinion > is that live is much easier having two classes. Maintainability > of code only for a server and only for a client is much easier then. It seemed like a good idea at the time, but like you said, I'm not so sure its a good idea anymore. Thanks for your input. Paul
Technical Details
Message-ID:
<43405084@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<433e524d$1@newsgroups.borland.com> <433e6bce$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dc3706a89a245de9 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Paul" <plmacca@clara.co.uk> Newsgroups: borland.public.cppbuilder.internet.socket References: <433e524d$1@newsgroups.borland.com> <433e6bce$1@newsgroups.borland.com> Subject: Re: Server and Client Sockets Date: Sun, 2 Oct 2005 22:31:09 -0000 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 86.133.178.74 Message-ID: <43405084@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1128288388 86.133.178.74 (2 Oct 2005 14:26:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail