Article View: borland.public.cppbuilder.internet.socket
Article #5599Re: Confusion on Blocking Sockets
From: Remy Lebeau (TeamB)
Date: Tue, 20 Jul 2004 21:12
Date: Tue, 20 Jul 2004 21:12
26 lines
1793 bytes
1793 bytes
"mike" <mfbrowne@earthlink.net> wrote in message
news:40fd7549$1@newsgroups.borland.com...
> If I create a blocking socket thread and within the socket thread
> under "public" I define a variable, how would I retreive the value
> of the variable from outside the class.
The same way you access public members for any class in general. You create
an instance of the thread when needed, and then later on you use a pointer
to that thread to access the member, ie:
TMyServerThread *thread = new TMyServerThread(Socket);
//...
// use thread->SomeVariable as needed....
If that does not help you, then you need to explain, in detail, exactly what
you are having a problem with.
> Also on the same note how would I execute the
> above SomeFunction() from outside the class declaration.
The same way as executing a method of any other class instance.
Gabit
Technical Details
Message-ID:
<40fd8a86$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40fd7549$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,aa96f08785735f2d X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <40fd7549$1@newsgroups.borland.com> Subject: Re: Confusion on Blocking Sockets Date: Tue, 20 Jul 2004 14:12:31 -0700 Lines: 28 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: <40fd8a86$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090357894 68.69.17.41 (20 Jul 2004 14:11:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail