// Server for vending an object either trhough a NSMessagePort or NSSocketPort

#import <Foundation/Foundation.h>

#define NameServerClassMacro(p) p##NameServer

#if 1
#define PortClass NSMessagePort
#define NameServerClass NameServerClassMacro(NSMessagePort)
#else
#define PortClass NSSocketPort
#define NameServerClass NameServerClassMacro(NSSocketPort)
#endif

@protocol MyServer
- (NSString *) method;
- (bycopy NSString *) method2:(byref NSString *) arg;
@end
