I had Distributed object which can used by any client, i am
establishing connection using a port , every thing works fine.My
object is vended and the client can use the vended object . But i am
getting problem when i restart my server which supplies vended object.
When i am restarting sometimes my socket is not get allocated , and
this is beecause the socket is using by any of the client, how can i
resolve this situation .
NSSocketPort *serverPort = [[[NSSocketPort alloc] initWithTCPPort:
3002] autorelease];
aConnection = [[NSConnection alloc] initWithReceivePort:serverPort
sendPort:nil];
NSRunLoop *runloop = [NSRunLoop currentRunLoop];
[aConnection setRootObject:[ServerObject sharedServerObject]];
Regards
kiran
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]