• 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
DO and client identification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DO and client identification?


  • Subject: DO and client identification?
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 14 Feb 2002 23:16:53 +0100

Hello,

is there any way to identify which client sent a DO message which is just
being served? Something like //*** below:

@interface Server:NSObject @end
...
// main code
[conn=[NSConnection defaultConnection] setRootObject:server];
[conn registerName:SOMENAME];
[conn runInNewThread];
...
@implementation Server
-(void)someServerMethodWithObject:(byref id)clientObject {
NSConnection *clientConn=???; //***

// now, clientConn==[clientObject connectionForProxy]) is always true
}
@end

Of course, what I need this for is to get the appropriate connection in
messages where there is no byref object, including messages without any
argument at all.

Although I would prefer identification of the client by way of "its"
connection, any other way (like, port or so) would do, if that is not
possible.

TIA,
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.

  • Follow-Ups:
    • Clarification: DO and client identification?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: NSUserDefaults stickyness
  • Next by Date: Re: Drawer contents still active when sheet presented
  • Previous by thread: More compiling problems (debugger)
  • Next by thread: Clarification: DO and client identification?
  • Index(es):
    • Date
    • Thread