🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Confusion on Blocking Sockets

#5598
From: mike
Date: Tue, 20 Jul 2004 19:47
28 lines
1468 bytes
Hello, could someone assist me on this, I am confused as to how it should
work.

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. This would be a partial defintion of the code;

class PACKAGE TMyServerThread : public Scktcomp::TServerClientThread
{
public:
AnsiString      SomeVariable  ;

void __fastcall SomeFunction( void )  ;
.
.
.
......

}

Also on the same note how would I execute the above SomeFunction() from
outside the class declaration.

A sample code snippit of how to do this would sure help me out.

Thanks

Mike
Technical Details
Message-ID: <40fd7549$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,aa96f08785735f2d,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "mike" <mfbrowne@earthlink.net>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Confusion on Blocking Sockets
Date: Tue, 20 Jul 2004 15:47:59 -0400
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 68.204.191.95
Message-ID: <40fd7549$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090352457 68.204.191.95 (20 Jul 2004 12:40:57 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail