]>
Dogcows Code - chaz/thecheat/blob - CheatServer.h
2 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 // Created: Sun Sep 07 2003
8 // Copyright: 2003 Chaz McGarvey. All rights reserved.
9 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11 #import <Cocoa/Cocoa.h>
13 #import "ServerDelegate.h"
15 #include <mach/vm_map.h>
16 #include <mach/mach_traps.h>
18 #include <malloc/malloc.h>
20 #include <sys/types.h>
21 #include <sys/ptrace.h>
25 #include "cheat_types.h"
26 #include "cheat_net.h"
32 @interface CheatServer
: NSObject
42 NSMutableArray
*searchResults
;
43 NSMutableArray
*searchResultsUndone
;
46 + (NSConnection
*)serverWithDelegate
:(id
)delegate socket
:(int)sock
;
47 + (void)serverThread
:(NSArray
*)array
;
49 - (id
)initWithRootProxy
:(id
)proxy
;
51 - (void)handleSocket
:(int)sock
;
54 - (void)setAddress
:(NSString
*)address
;
55 - (void)setAction
:(NSString
*)action
;
57 - (void)firstSearchString8bit
:(char const *)value size
:(int)vsize
;
58 - (void)firstSearchIntegerChar
:(int8_t)value
;
59 - (void)firstSearchIntegerShort
:(int16_t)value
;
60 - (void)firstSearchIntegerLong
:(int32_t)value
;
61 - (void)firstSearchDecimalFloat
:(float)value
;
62 - (void)firstSearchDecimalDouble
:(double)value
;
64 - (void)searchString8bit
:(char const *)value size
:(int)vsize
;
65 - (void)searchIntegerChar
:(int8_t)value
;
66 - (void)searchIntegerShort
:(int16_t)value
;
67 - (void)searchIntegerLong
:(int32_t)value
;
68 - (void)searchDecimalFloat
:(float)value
;
69 - (void)searchDecimalDouble
:(double)value
;
71 - (void)changeString8bit
:(char const *)value size
:(int)vsize addresses
:(TCaddress
*)addresses count
:(int)count
;
72 - (void)changeIntegerChar
:(int8_t)value addresses
:(TCaddress
*)addresses count
:(int)count
;
73 - (void)changeIntegerShort
:(int16_t)value addresses
:(TCaddress
*)addresses count
:(int)count
;
74 - (void)changeIntegerLong
:(int32_t)value addresses
:(TCaddress
*)addresses count
:(int)count
;
75 - (void)changeDecimalFloat
:(float)value addresses
:(TCaddress
*)addresses count
:(int)count
;
76 - (void)changeDecimalDouble
:(double)value addresses
:(TCaddress
*)addresses count
:(int)count
;
78 - (void)sendProcessList
;
79 - (void)sendSearchFinished
;
80 - (void)sendVariableList
:(TCaddress
const *)data amount
:(int)amount
;
81 - (void)sendChangeFinished
;
82 - (void)sendError
:(NSString
*)msg fatal
:(BOOL
)fatal
;
83 - (void)sendVariableValue
:(u_int32_t
)index
;
84 - (void)sendUndoFinished
;
85 - (void)sendRedoFinished
;
86 - (void)sendUndoRedoStatus
;
87 - (void)sendAppLaunched
:(NSDictionary
*)appInfo
;
88 - (void)sendAppQuit
:(NSDictionary
*)appInfo
;
89 - (void)sendTargetAppQuit
;
90 - (void)sendPauseFinished
:(BOOL
)paused
;
92 - (void)handleClearSearch
;
93 - (void)handleSearch
:(char const *)data size
:(int)dataSize
;
94 - (void)handleChange
:(char const *)data size
:(int)dataSize
;
95 - (void)handlePauseTarget
;
98 - (void)handleSetTargetPID
:(char const *)data size
:(int)size
;
101 - (void)setPID
:(pid_t
)pid
;
This page took 0.03763 seconds and 4 git commands to generate.