🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Serializing struct for TCP sending

#1116
From: Remy Lebeau (TeamB)
Date: Tue, 15 May 2007 19:02
13 lines
1443 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:hevj4394fkkbve5uiuicaf1614234a44j3@4ax.com...

> 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

You should also use 1-byte alignment for your structures so that there
is no unnecessary padding added by the compiler.


Gambit
Technical Details
Message-ID: <464a0555@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!feed10.multikabel.net!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4649f789@newsgroups.borland.com> <hevj4394fkkbve5uiuicaf1614234a44j3@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fd5a9df59ed83942
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4649f789@newsgroups.borland.com> <hevj4394fkkbve5uiuicaf1614234a44j3@4ax.com>
Subject: Re: Serializing struct for TCP sending
Date: Tue, 15 May 2007 12:02:01 -0700
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.82.60.244
Message-ID: <464a0555@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1179256149 75.82.60.244 (15 May 2007 12:09:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!feed10.multikabel.net!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail