Article View: borland.public.cppbuilder.internet.socket
Article #831Re: Data through Socket Connection
From: Bob Gonder
Date: Tue, 25 Sep 2007 22:28
Date: Tue, 25 Sep 2007 22:28
15 lines
1659 bytes
1659 bytes
Remy Lebeau (TeamB) wrote: >"Aitor Matilla" wrote > >> (Buf, sizeof(myclass))). >> However, it shouldn't work because of I cannot send memory addresses? > >You don't send the addresses themselves. That is not how sockets work. The >data being pointed to is what gets sents instead. I think he was complaining that he wanted to send a class object, but that object contains pointers, which doesn't work out so well. Other than manually sending the individual pieces, is there some "automatic" method/way to send all class members? Perhaps some sort of socket << complexobject ?
Technical Details
Message-ID:
<2d2jf3dcnjtnkoja5c1a8tmfmc2uqj4e1n@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46f8bc4e$2@newsgroups.borland.com> <46f93930$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c4e53e5901851367 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Data through Socket Connection Date: Tue, 25 Sep 2007 15:28:15 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <2d2jf3dcnjtnkoja5c1a8tmfmc2uqj4e1n@4ax.com> References: <46f8bc4e$2@newsgroups.borland.com> <46f93930$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.146.190 X-Trace: newsgroups.borland.com 1190759293 67.77.146.190 (25 Sep 2007 15:28:13 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail