🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Serializing struct for TCP sending

#1123
From: Stefano Bonifazi
Date: Wed, 16 May 2007 11:26
30 lines
2101 bytes
Hi Mr. Lebeau! Thank U for Ur answer!


>> Wish they used Indy on Linux..they uses simple Liux socket API..
> 
> Indy works on Linux, and is built on top of the same API.

Sure, sorry my english:( I meant I wished they(the programmers on Linux 
   I am working with) would use Indy, but they don't, even though after 
my recommendation! :(

> 
>> hope they perform conversion from Network endian to Host
>> machine endian as well as!!
> 
> Everybody does.  It is the only way to ensure proper data integrity
> over a network across different platforms.

I c.. that's why that works even though I never did anything special to 
take care of it before :)



Please have U suggestiond about sending floating point numbers? I can't 
do without! Should I convert them to string representation and send the 
strings instead to be sure nothing odd happens?

Thank U again!

Stefano B.
Technical Details
Message-ID: <464aea74@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4649f789@newsgroups.borland.com> <hevj4394fkkbve5uiuicaf1614234a44j3@4ax.com> <464a0555@newsgroups.borland.com> <464a101b@newsgroups.borland.com> <464a1abf@newsgroups.borland.com> <464a200d@newsgroups.borland.com> <464a3dcc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fd5a9df59ed83942
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 16 May 2007 13:26:48 +0200
From: Stefano Bonifazi <stefboombastic@email.it>
User-Agent: Mozilla Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Serializing struct for TCP sending
References: <4649f789@newsgroups.borland.com> <hevj4394fkkbve5uiuicaf1614234a44j3@4ax.com> <464a0555@newsgroups.borland.com> <464a101b@newsgroups.borland.com> <464a1abf@newsgroups.borland.com> <464a200d@newsgroups.borland.com> <464a3dcc$1@newsgroups.borland.com>
In-Reply-To: <464a3dcc$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 80.104.235.16
Message-ID: <464aea74@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1179314804 80.104.235.16 (16 May 2007 04:26:44 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail