🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Socket Runtime questions (Again)

#4855
From: Dev Support
Date: Tue, 30 Nov 2004 00:44
33 lines
1847 bytes
Remy:

Ouch! Now I really feel stupid!

Thanks you for your help!

Thank you

Marshall

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:41ab7fdf$1@newsgroups.borland.com...
>
> "Dev Support" <infsoft@centurytel.net> wrote in message
> news:41ab6cef$2@newsgroups.borland.com...
>
> > Thanks for the help but am I casting this thing wrong:
>
> Yes, you are.  You should be casting the Sender itself, not its Name:
>
>     ((TClientSocket *)Sender)->Name;
>
> You don't need its Name, though, to know which socket is triggering the
> event.  Just use the Sender directly, it is already a pointer to the
> specific socket.
>
>     TClientSocket *ASocket = (TClientSocket*)Sender;
>     ASocket->DoSomething...
>
>
> Gambit
>
>
Technical Details
Message-ID: <41aba2c6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <419cd7f5@newsgroups.borland.com> <419cef78$1@newsgroups.borland.com> <41a8c7fe$1@newsgroups.borland.com> <41aa51c1$1@newsgroups.borland.com> <41ab6cef$2@newsgroups.borland.com> <41ab7fdf$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,18bd2c5dd1b06641
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dev Support" <infsoft@centurytel.net>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <419cd7f5@newsgroups.borland.com> <419cef78$1@newsgroups.borland.com> <41a8c7fe$1@newsgroups.borland.com> <41aa51c1$1@newsgroups.borland.com> <41ab6cef$2@newsgroups.borland.com> <41ab7fdf$1@newsgroups.borland.com>
Subject: Re: Socket Runtime questions (Again)
Date: Mon, 29 Nov 2004 16:44:29 -0800
Lines: 35
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: 69.29.175.81
Message-ID: <41aba2c6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101767366 69.29.175.81 (29 Nov 2004 14:29:26 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail