• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SocketPort allocating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: How do you flush an embedded WebKit objects cache
  • Next by Date: Re: Enabling add button
  • Previous by thread: How do you flush an embedded WebKit objects cache
  • Next by thread: download security hanging app - It's a more general Problem + Solution
  • Index(es):
    • Date
    • Thread