This is ServerMain.m in view mode; [Download] [Up]
// ServerMain is a basic server program which handles the high scores. // It sets up a port and then waits for clients. #import <remote/NXConnection.h> #import <gamekit/gamekit.h> int main() { id distributor = [[HighScoreDistributor alloc] init]; id connection = [NXConnection registerRoot:distributor withName:"DAYHighScoreServer"]; #ifdef LOGGING_ENABLED [HighScoreServer turnLoggingOn:YES]; #endif [connection run]; exit(0); }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.