Article View: borland.public.cppbuilder.internet.socket
Article #4851Re: Socket Runtime questions (Again)
From: Dev Support
Date: Mon, 29 Nov 2004 20:54
Date: Mon, 29 Nov 2004 20:54
39 lines
1907 bytes
1907 bytes
Remy: Thanks for the help but am I casting this thing wrong: (TClientSocket *) Sender->Name; When I cast it as such, I get an error that "Name is not a member of TOBject" Thank you Marshall "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:41aa51c1$1@newsgroups.borland.com... > > "Dev Support" <infsoft@centurytel.net> wrote in message > news:41a8c7fe$1@newsgroups.borland.com... > > > Not sure why the function must be a method BUT it does work! > > It is because VCL events are declared as closures, and closures require > class methods. > > > how can I determine which of my multiple sockets is calling > > my error method? > > That is what the Sender parameter is for. > > > Am I to cast the Sender parm as a client socket? > > Yes. > > > Gambit > >
Technical Details
Message-ID:
<41ab6cef$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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-mailReferences:
<419cd7f5@newsgroups.borland.com> <419cef78$1@newsgroups.borland.com> <41a8c7fe$1@newsgroups.borland.com> <41aa51c1$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> Subject: Re: Socket Runtime questions (Again) Date: Mon, 29 Nov 2004 12:54:45 -0800 Lines: 41 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: <41ab6cef$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101753583 69.29.175.81 (29 Nov 2004 10:39:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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