X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=ServerHolder.h;fp=ServerHolder.h;h=e0342ad11a2a11e64f2c3a13d2cab19e25d53bf0;hp=0000000000000000000000000000000000000000;hb=42cf7bbe564d70233a0d73baee613f209eb00eb6;hpb=2d60a59a8ad195dd0af8f90c8d5b74a69ce7f4fa diff --git a/ServerHolder.h b/ServerHolder.h new file mode 100644 index 0000000..e0342ad --- /dev/null +++ b/ServerHolder.h @@ -0,0 +1,42 @@ + +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// Project: The Cheat +// +// File: ServerHolder.h +// Created: Sun Sep 28 2003 +// +// Copyright: 2003 Chaz McGarvey. All rights reserved. +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +#import + + +@class CheatServer; + + +@interface ServerHolder : NSObject +{ + NSConnection *connection; + CheatServer *server; + int sockfd; + + NSString *address; + NSString *action; +} + ++ (ServerHolder *)holderWithConnection:(NSConnection *)conn socket:(int)sock; +- (id)initWithConnection:(NSConnection *)conn socket:(int)sock; + +- (NSConnection *)connection; +- (void)setConnection:(NSConnection *)conn; +- (CheatServer *)server; +- (void)setServer:(CheatServer *)serv; +- (int)sockfd; +- (void)setSockFD:(int)sock; + +- (NSString *)address; +- (void)setAddress:(NSString *)addr; +- (NSString *)action; +- (void)setAction:(NSString *)act; + +@end \ No newline at end of file