]> Dogcows Code - chaz/thecheat/blob - CheatServer.h
The Cheat 1.1.2
[chaz/thecheat] / CheatServer.h
1
2 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 // Project: The Cheat
4 //
5 // File: CheatServer.h
6 // Created: Sun Sep 07 2003
7 //
8 // Copyright: 2003 Chaz McGarvey. All rights reserved.
9 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10
11 #import <Cocoa/Cocoa.h>
12 #import <Chaz/Chaz.h>
13
14 #import "ServerDelegate.h"
15
16 #include <mach/vm_map.h>
17 #include <mach/mach_traps.h>
18
19 #include <malloc/malloc.h>
20
21 #include <sys/types.h>
22 #include <sys/ptrace.h>
23 #include <sys/wait.h>
24 #include <unistd.h>
25
26 #include "cheat_types.h"
27 #include "cheat_net.h"
28
29
30 @class SearchResults;
31
32
33 @interface CheatServer : NSObject
34 {
35 id rootProxy;
36 int sockfd;
37
38 pid_t processID;
39 vm_map_t processTask;
40
41 BOOL processPaused;
42
43 NSMutableArray *searchResults;
44 NSMutableArray *searchResultsUndone;
45 int searchResultsAmountDisplayed;
46 }
47
48 + (NSConnection *)serverWithDelegate:(id)delegate socket:(int)sock;
49 + (void)serverThread:(NSArray *)array;
50
51 - (id)initWithRootProxy:(id)proxy;
52
53 - (void)handleSocket:(int)sock;
54 - (void)run;
55
56 - (void)setAddress:(NSString *)address;
57 - (void)setAction:(NSString *)action;
58
59 - (void)firstSearchString8bit:(char const *)value size:(int)vsize;
60 - (void)firstSearchIntegerChar:(int8_t)value;
61 - (void)firstSearchIntegerShort:(int16_t)value;
62 - (void)firstSearchIntegerLong:(int32_t)value;
63 - (void)firstSearchDecimalFloat:(float)value;
64 - (void)firstSearchDecimalDouble:(double)value;
65
66 - (void)searchString8bit:(char const *)value size:(int)vsize;
67 - (void)searchIntegerChar:(int8_t)value;
68 - (void)searchIntegerShort:(int16_t)value;
69 - (void)searchIntegerLong:(int32_t)value;
70 - (void)searchDecimalFloat:(float)value;
71 - (void)searchDecimalDouble:(double)value;
72
73 - (void)changeString8bit:(char const *)value size:(int)vsize addresses:(TCaddress *)addresses count:(int)count;
74 - (void)changeIntegerChar:(int8_t)value addresses:(TCaddress *)addresses count:(int)count;
75 - (void)changeIntegerShort:(int16_t)value addresses:(TCaddress *)addresses count:(int)count;
76 - (void)changeIntegerLong:(int32_t)value addresses:(TCaddress *)addresses count:(int)count;
77 - (void)changeDecimalFloat:(float)value addresses:(TCaddress *)addresses count:(int)count;
78 - (void)changeDecimalDouble:(double)value addresses:(TCaddress *)addresses count:(int)count;
79
80 - (void)sendProcessList;
81 - (void)sendSearchFinished;
82 - (void)sendVariableList:(TCaddress const *)data amount:(int)amount;
83 - (void)sendChangeFinished;
84 - (void)sendError:(NSString *)msg fatal:(BOOL)fatal;
85 - (void)sendVariableValue:(u_int32_t)index;
86 - (void)sendUndoFinished;
87 - (void)sendRedoFinished;
88 - (void)sendUndoRedoStatus;
89 - (void)sendAppLaunched:(NSDictionary *)appInfo;
90 - (void)sendAppQuit:(NSDictionary *)appInfo;
91 - (void)sendTargetAppQuit;
92 - (void)sendPauseFinished:(BOOL)paused;
93
94 - (void)handleClearSearch;
95 - (void)handleSearch:(char const *)data size:(int)dataSize;
96 - (void)handleChange:(char const *)data size:(int)dataSize;
97 - (void)handlePauseTarget;
98 - (void)handleUndo;
99 - (void)handleRedo;
100 - (void)handleSetTargetPID:(char const *)data size:(int)size;
101
102 - (void)unpause;
103 - (void)setPID:(pid_t)pid;
104
105 @end
106
This page took 0.03526 seconds and 5 git commands to generate.