Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed Objects



Greetings Dalton,
Sorry for taking so long for writing back.   Side the fundamental datatypes, the NSData type would actually be the most universal to any application using DO.   You can use it to store the buffer, and transfer the buffer.   Another feature that can also be used Archive / Unarchive.   These concepts have the same purpose as marshall and unmarshall in classic distributed computing literature.  Both can be effective.   In either case, the concept is same.

client marshalls arguments 

client calls DO w/ arguments

server unmarshall arguments

server does work

server marshall results 

return marshalled results

unmarshall on the client side


Whether you use archiving / unarchiving to do the marshalling for you is up to you.   Truthful, I use it when I have DO in mind.  

I hope that helps.

Later,
Dan Beatty



On Mar 1, 2006, at 7:14 AM, Dalton Hamilton wrote:

Hello -
I have some working Distributed Object client/server skeleton code.  I can call remote methods but I don't see a way to have the remote distributed object return anything other than an int return value to the calling client.

In other words, I want the client to call a method in the remote Distributed Object and have the remote method execute a command and return a buffer of characters (the results) of size N bytes.

The only way I see to return the results at this point is to work outside of DO and use a separate client/server socket connection for data results to be passed back.  But that takes away from the advantage DO brings.

Any ideas would be appreciated.

Dalton Hamilton

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


Dan Beatty, M.S. CS (B.S. EECS)
Ph.D. Student 
Texas Tech University



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden

References: 
 >Distributed Objects (From: Dalton Hamilton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.