File tree 4 files changed +7
-19
lines changed
4 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ - (void)fillInitialStatus {
156
156
- (BOOL )establishCommunication {
157
157
// Set up DO
158
158
connection = [NSConnection connectionWithRegisteredName: kMFDistributedObjectName host: nil ];
159
+ [connection setRequestTimeout: 5 .0f ];
160
+ [connection setReplyTimeout: 5 .0f ];
161
+
159
162
id serverObject = [connection rootProxy ];
160
163
[serverObject setProtocolForProxy: @protocol (MFServerProtocol)];
161
164
server = (id <MFServerProtocol>)serverObject;
Original file line number Diff line number Diff line change 22
22
@interface MFCommunicationServer : NSObject <MFServerProtocol> {
23
23
NSError *_recentError;
24
24
NSMutableArray *_clients;
25
+ NSConnection *_doConnection;
25
26
}
26
27
27
28
+ (MFCommunicationServer *)sharedServer ;
Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ - (id) init {
57
57
}
58
58
59
59
- (void )vendDisributedObject {
60
- NSConnection *connection = [NSConnection new ];
61
- [connection setRootObject: self ];
62
- if ([connection registerName: kMFDistributedObjectName ] == YES ) {
60
+ _doConnection = [NSConnection new ];
61
+ [_doConnection setRootObject: self ];
62
+ if ([_doConnection registerName: kMFDistributedObjectName ]) {
63
63
} else {
64
64
MFLogS (self, @" Failed to register connection name" );
65
65
exit (-1 );
Original file line number Diff line number Diff line change 1863
1863
buildSettings = {
1864
1864
COPY_PHASE_STRIP = YES;
1865
1865
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1866
- FRAMEWORK_SEARCH_PATHS = (
1867
- "$(inherited)",
1868
- "\"$(SRCROOT)/../Build/Debug\"",
1869
- );
1870
1866
GCC_ENABLE_FIX_AND_CONTINUE = NO;
1871
1867
GCC_ENABLE_OBJC_GC = required;
1872
1868
GCC_MODEL_TUNING = G5;
2142
2138
buildSettings = {
2143
2139
COPY_PHASE_STRIP = YES;
2144
2140
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
2145
- FRAMEWORK_SEARCH_PATHS = (
2146
- "$(inherited)",
2147
- "\"$(SRCROOT)/../Build/Debug\"",
2148
- );
2149
2141
GCC_ENABLE_FIX_AND_CONTINUE = NO;
2150
2142
GCC_ENABLE_OBJC_GC = required;
2151
2143
GCC_MODEL_TUNING = G5;
2327
2319
buildSettings = {
2328
2320
COPY_PHASE_STRIP = YES;
2329
2321
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
2330
- FRAMEWORK_SEARCH_PATHS = (
2331
- "$(inherited)",
2332
- "\"$(SRCROOT)/../Build/Debug\"",
2333
- );
2334
2322
GCC_ENABLE_FIX_AND_CONTINUE = NO;
2335
2323
GCC_ENABLE_OBJC_GC = required;
2336
2324
GCC_MODEL_TUNING = G5;
2652
2640
buildSettings = {
2653
2641
COPY_PHASE_STRIP = YES;
2654
2642
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
2655
- FRAMEWORK_SEARCH_PATHS = (
2656
- "$(inherited)",
2657
- "\"$(SRCROOT)/../Build/Debug\"",
2658
- );
2659
2643
GCC_ENABLE_FIX_AND_CONTINUE = NO;
2660
2644
GCC_ENABLE_OBJC_GC = required;
2661
2645
GCC_MODEL_TUNING = G5;
You can’t perform that action at this time.
0 commit comments