small medium large xlarge

Back to: All Forums  Core Data
14 Aug 2009, 22:06
Alvise Susmel (9 posts)


I’m trying to understand the distribution with CoreData. Launching DistributedCdClient I have this error:

[NSPortCoder sendBeforeTime:sendReplyPort:] timed out (10271980084.846394 271980084.846773

when DistributedCdServer is started on the same computer.

What is going wrong?

Thank you.

Alvise Susmel

02 Mar 2010, 17:46
Tony Langdon (2 posts)

I ended up here having the same problem. Some googling of the error suggested byte ordering issues affecting Intel vs PPC.

I changed the client’s netServiceDidResolveAddress: to initialise the NSSocketPort using the following call

	socket = [[NSSocketPort alloc] initRemoteWithTCPPort:[service port]
                                                     host:[service hostName]];

instead of the call to initRemoteWithProtocolFamily:socketType:protocol:address: and it now works. Alternatively I could have tried amending the port in the NSData* address but the above is far simpler.

You must be logged in to comment