X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=ServerHolder.m;fp=ServerHolder.m;h=0000000000000000000000000000000000000000;hp=d6f72901774c7d2fb4a081ddce9b3907704de47a;hb=d27548f80fe411fda2ee69c74a24eab4292267e9;hpb=e8d51183acdd2410a38dcf8f0efbf7c30cd6c581 diff --git a/ServerHolder.m b/ServerHolder.m deleted file mode 100644 index d6f7290..0000000 --- a/ServerHolder.m +++ /dev/null @@ -1,102 +0,0 @@ - -// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -// Project: The Cheat -// -// File: ServerHolder.m -// Created: Sun Sep 28 2003 -// -// Copyright: 2003 Chaz McGarvey. All rights reserved. -// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -#import "ServerHolder.h" - -#import "CheatServer.h" - - -@implementation ServerHolder - - -+ (ServerHolder *)holderWithConnection:(NSConnection *)conn socket:(int)sock -{ - return [[[ServerHolder alloc] initWithConnection:conn socket:sock] autorelease]; -} - -- (id)initWithConnection:(NSConnection *)conn socket:(int)sock -{ - if ( self = [super init] ) - { - connection = [conn retain]; - sockfd = sock; - } - - return self; -} - - -- (NSConnection *)connection -{ - return connection; -} - -- (void)setConnection:(NSConnection *)conn -{ - [connection release]; - connection = [conn retain]; -} - -- (CheatServer *)server -{ - return server; -} - -- (void)setServer:(CheatServer *)serv -{ - [server release]; - server = [serv retain]; -} - - -- (int)sockfd -{ - return sockfd; -} - -- (void)setSockFD:(int)sock -{ - sockfd = sock; -} - - -- (NSString *)address -{ - return address; -} - -- (void)setAddress:(NSString *)addr -{ - [address release]; - address = [addr retain]; -} - -- (NSString *)action -{ - return action; -} - -- (void)setAction:(NSString *)act -{ - [action release]; - action = [act retain]; -} - - -- (void)dealloc -{ - [connection release]; - [server release]; - - [super dealloc]; -} - - -@end \ No newline at end of file