]> Dogcows Code - chaz/thecheat/blob - ServerChild.h
update contact information and project URL
[chaz/thecheat] / ServerChild.h
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12 #import <Cocoa/Cocoa.h>
13 #import "ChazLog.h"
14
15 #import "MySocket.h"
16
17 #import "LocalCheater.h"
18 #import "Cheater.h"
19
20 #include <string.h>
21
22
23 @interface ServerChild : NSObject < CheaterDelegate >
24 {
25 MySocket *_socket;
26 NSString *_client;
27
28 LocalCheater *_cheater;
29
30 /* the current packet being read. */
31 TCPacketHeader _header;
32 NSData *_parameters;
33
34 id _delegate;
35 }
36
37 - (id)initWithSocket:(MySocket *)sock;
38 - (id)initWithSocket:(MySocket *)sock delegate:(id)delegate;
39
40 - (NSString *)host;
41 - (NSString *)transfer;
42
43 - (id)delegate;
44 - (void)setDelegate:(id)delegate;
45
46 @end
47
48
49 @interface NSObject ( ServerChildDelegate )
50
51 // informs the cheat server of connection status
52 - (void)serverChildConnected:(ServerChild *)theChild;
53 - (void)serverChildDisconnected:(ServerChild *)theChild;
54
55 // inform the cheat server something about the child changed.
56 - (void)serverChildChanged:(ServerChild *)theChild;
57
58 @end
This page took 0.033086 seconds and 4 git commands to generate.