DO and client identification?
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.