home *** CD-ROM | disk | FTP | other *** search
- // 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);
- }
-