File:  [NeXTSTEP 3.3 examples] / Examples / DistributedObjects / remoteSpot / Thinker.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:49:03 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3


/* Thinker.h */

#import "Spot.h"
#import <appkit/appkit.h>
#import <remote/NXProxy.h>

@protocol spotClientMethods
- spotList;
- (oneway void) useSpotList: (bycopy in id) newSpotList;
- (oneway void) serverTerminated;
@end

@protocol spotServerMethods
- (void) addClient:(id <spotClientMethods>)remoteClient
	r:(out float *)r
	g:(out float *)g
	b:(out float *)b;
- nukeClient: theClientRecord;
- (void) clientTerminated:(in id)sender;
- (oneway void) sendSpotListToClients;
- getSpotForPoint:(NXPoint) pnt spotLocation:(out NXPoint *)loc;
- (oneway void) spotDidChange;
@end

@interface Thinker:Object <spotServerMethods, spotClientMethods, NXSenderIsInvalid>
{
    id	win;
    id	mySpotView;
    id	spotList;
	id server;
	BOOL isServer;
	NXConnection *myConnection;

	id	clientList;
}

- appDidInit:sender;
- appWillTerminate:sender;
- server;
- (BOOL)isServer;

@end


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.