X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=CheatListener.h;fp=CheatListener.h;h=78b4bedeb462b2ae299417c1bf96a15cd5cd8c26;hp=0000000000000000000000000000000000000000;hb=42cf7bbe564d70233a0d73baee613f209eb00eb6;hpb=2d60a59a8ad195dd0af8f90c8d5b74a69ce7f4fa diff --git a/CheatListener.h b/CheatListener.h new file mode 100644 index 0000000..78b4bed --- /dev/null +++ b/CheatListener.h @@ -0,0 +1,40 @@ + +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// Project: The Cheat +// +// File: CheatListener.h +// Created: Wed Sep 24 2003 +// +// Copyright: 2003 Chaz McGarvey. All rights reserved. +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +#import + +#import "ListenerDelegate.h" + +#include "cheat_globals.h" +#include "cheat_net.h" + +#include "stdio.h" + +@class CheatServer; + + +@interface CheatListener : NSObject +{ + id rootProxy; + int sockfd; + + BOOL listenRemote; +} + ++ (NSConnection *)listenerWithDelegate:(id)del port:(int)port remote:(BOOL)remote; ++ (void)listenerThread:(NSArray *)array; + +- (id)initWithRootProxy:(id)proxy; + +- (void)listenOnPort:(int)port remote:(BOOL)remote; +- (void)run; +- (void)cleanup; + +@end \ No newline at end of file