SocketPort allocating
SocketPort allocating
- Subject: SocketPort allocating
- From: Kiran Kumar S <email@hidden>
- Date: Fri, 19 Dec 2008 17:49:15 +0530
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@hidden)
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:
This email sent to email@hidden