Article View: borland.public.cppbuilder.internet.socket
Article #1117Re: Serializing struct for TCP sending
From: Stefano Bonifazi
Date: Tue, 15 May 2007 19:54
Date: Tue, 15 May 2007 19:54
17 lines
1596 bytes
1596 bytes
Hi thank U very much to both! >> If you are sending to someone else's app, or your app that >> someone compiles for their harware, you might be better off >> converting integers and such into network-endian format sorry how? I always used Indy SendBuffer and on the other side even from Linux they receive fine! > > You should also use 1-byte alignment for your structures so that there > is no unnecessary padding added by the compiler. U mean in "advanced compiler" options, "data alignment" right? Thank U again!
Technical Details
Message-ID:
<464a101b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.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-mailReferences:
<4649f789@newsgroups.borland.com> <hevj4394fkkbve5uiuicaf1614234a44j3@4ax.com> <464a0555@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: Tue, 15 May 2007 21:54:47 +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> In-Reply-To: <464a0555@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.104.231.154 Message-ID: <464a101b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1179258907 80.104.231.154 (15 May 2007 12:55:07 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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