🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TServerClientWinSocket->Data Help Please

#215
From: Remy Lebeau (TeamB)
Date: Thu, 05 Jun 2008 19:07
14 lines
1385 bytes
"DreamChaser" <NO-Spam@No-Span.net> wrote in message 
news:48482aae$1@newsgroups.borland.com...

> How do I assign/read a string to the Socket->Data?
> Is it a double pointer?

No.  Simply dereference the pointer you already have, ie:

    *((AnsiString*)(Socket->Data)) = "DreamChaser";
    AnsiString asName = *((AnsiString*)(Socket->Data));


Gambit 
Technical Details
Message-ID: <4848399e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <48416d7a$1@newsgroups.borland.com> <48441ff3$1@newsgroups.borland.com> <48482aae$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,67ea390c53ca6f1c
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <48416d7a$1@newsgroups.borland.com> <48441ff3$1@newsgroups.borland.com> <48482aae$1@newsgroups.borland.com>
Subject: Re: TServerClientWinSocket->Data Help Please
Date: Thu, 5 Jun 2008 12:07:07 -0700
Lines: 16
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <4848399e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1212692894 207.178.157.90 (5 Jun 2008 12:08:14 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail