🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem sending an structure with TIdTCPClient

#641
From: Remy Lebeau (TeamB)
Date: Thu, 13 Dec 2007 17:31
16 lines
1431 bytes
"Star" <noemail@noemail.com> wrote in message 
news:47612bf3@newsgroups.borland.com...

> Yes, I know I cannot use AnsiString. My structure looks like this:
<snip>
> I just checked the Indy version and is 10.1.5

In that case:

    CLIENTTOSERVERCMD mycmd;
    ...
    IdTCPClient->IOHandler->Write(RawToBytes(&mycmd, sizeof(mycmd)));


Gambit 
Technical Details
Message-ID: <47616d60$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4760409e$1@newsgroups.borland.com> <4760433e$3@newsgroups.borland.com> <4760457a$1@newsgroups.borland.com> <47605ff1$1@newsgroups.borland.com> <47612bf3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3de5ee2b93c32b5
X-Google-Attributes: gid11508e,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: <4760409e$1@newsgroups.borland.com> <4760433e$3@newsgroups.borland.com> <4760457a$1@newsgroups.borland.com> <47605ff1$1@newsgroups.borland.com> <47612bf3@newsgroups.borland.com>
Subject: Re: Problem sending an structure with TIdTCPClient
Date: Thu, 13 Dec 2007 09:31:06 -0800
Lines: 18
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 207.178.157.90
Message-ID: <47616d60$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1197567328 207.178.157.90 (13 Dec 2007 09:35:28 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail