DO and Rendezvous
DO and Rendezvous
- Subject: DO and Rendezvous
- From: Francisco Tolmasky <email@hidden>
- Date: Thu, 22 Apr 2004 00:01:37 -0700
I;m having a very difficult time using distributed objects over a
network. Currently, I have a certain object that I display in a table
view. I would like to make it publicly viewable, so I do this:
port= [[NSSocketPort alloc] initWithTCPPort: 3001];
connection= [[NSConnection alloc] initWithReceivePort: port sendPort:
port];
[connection setRootObject: theObject];
(I also broadcast a service)
I then on the client side recognize it through this:
port= [[NSSocketPort alloc] initRemoteWithTCPPort: 12345 host:
ipAddressString];
connection= [[NSConnection alloc] initWithReceivePort: nil sendPort:
port];
id proxy= [connection rootProxy];
[proxy setProtocolForProxy: @protocol(TRMovieProtocol)];
[listing addObject: proxy];
The problem is, I'm getting frequent timeouts, and when I don't I get a
peculiar error saying that:
encodeDataAt:ofObjCType: unencodable type (v)
Now, I am sure that I am reaching the object, since I can read some
values from it, but after I place it in the "listing" array, which is
bound to a table view, it hangs and gives me that error.
Does anyone know what might be going on?
Francisco Tolmasky
email@hidden
http://www-scf.usc.edu/~tolmasky/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.