• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Distributed objects: can't send simple C struct by value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed objects: can't send simple C struct by value


  • Subject: Re: Distributed objects: can't send simple C struct by value
  • From: Wade Tregaskis <email@hidden>
  • Date: Sat, 30 Oct 2004 19:25:17 +1000

I'm trying to send a simple C struct by value in a message to a remote object, but can't get it to work. Is this a known bug or limitation in the DO system? Here's an example of the struct I'm sending:

struct _Msg {
int a_fill;
char name[64];
int b_fill;
};

The problem seems to be that the struct is not getting encoded properly in the sender. The encoded object description appears to be correct, and 'a_fill' and the first part of 'name' appears to be correct, but the remainder of the structure is garbage.

Define "first part of 'name'"?

If nothing else, you should probably perform byte swapping on those integer values... yes, Apple's Distributed Object's implementation currently only runs on PPC hardware, but who knows what the future may bring.

Wade Tregaskis (AIM, Yahoo & Skype: wadetregaskis, ICQ: 40056898, MSN & email: email@hidden, Jabber: email@hidden
-- Sed quis custodiet ipsos custodes? _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Distributed objects: can't send simple C struct by value
      • From: Michael Heins <email@hidden>
References: 
 >Distributed objects: can't send simple C struct by value (From: Michael Heins <email@hidden>)

  • Prev by Date: Re: Autoresizable NSTextField (2)
  • Next by Date: How to show invisible files and folders in NSOpenPanel list.
  • Previous by thread: Distributed objects: can't send simple C struct by value
  • Next by thread: Re: Distributed objects: can't send simple C struct by value
  • Index(es):
    • Date
    • Thread