File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
AsyncNetwork.xcodeproj/xcshareddata/xcschemes Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1515 <BuildableReference
1616 BuildableIdentifier = " primary"
1717 BlueprintIdentifier = " 2DA5F1161AB5FABE00A8A65F"
18- BuildableName = " AsyncNetwork iOS .framework"
18+ BuildableName = " AsyncNetwork.framework"
1919 BlueprintName = " AsyncNetwork iOS"
2020 ReferencedContainer = " container:AsyncNetwork.xcodeproj" >
2121 </BuildableReference >
2929 shouldUseLaunchSchemeArgsEnv = " YES" >
3030 <Testables >
3131 </Testables >
32- <AdditionalOptions >
33- </AdditionalOptions >
3432 </TestAction >
3533 <LaunchAction
3634 buildConfiguration = " Debug"
4644 <BuildableReference
4745 BuildableIdentifier = " primary"
4846 BlueprintIdentifier = " 2DA5F1161AB5FABE00A8A65F"
49- BuildableName = " AsyncNetwork iOS .framework"
47+ BuildableName = " AsyncNetwork.framework"
5048 BlueprintName = " AsyncNetwork iOS"
5149 ReferencedContainer = " container:AsyncNetwork.xcodeproj" >
5250 </BuildableReference >
5351 </MacroExpansion >
54- <AdditionalOptions >
55- </AdditionalOptions >
5652 </LaunchAction >
5753 <ProfileAction
5854 buildConfiguration = " Release"
6460 <BuildableReference
6561 BuildableIdentifier = " primary"
6662 BlueprintIdentifier = " 2DA5F1161AB5FABE00A8A65F"
67- BuildableName = " AsyncNetwork iOS .framework"
63+ BuildableName = " AsyncNetwork.framework"
6864 BlueprintName = " AsyncNetwork iOS"
6965 ReferencedContainer = " container:AsyncNetwork.xcodeproj" >
7066 </BuildableReference >
Original file line number Diff line number Diff line change 6060- (void )stop ;
6161
6262- (void )connectToService : (NSNetService *)service ;
63+ - (void )connectToHost : (NSString *)theHost port : (NSUInteger )thePort ;
6364
6465- (void )sendCommand : (AsyncCommand)command object : (id <NSCoding >)object responseBlock : (AsyncNetworkResponseBlock)block ;
6566- (void )sendCommand : (AsyncCommand)command object : (id <NSCoding >)object ;
Original file line number Diff line number Diff line change @@ -118,6 +118,16 @@ - (void)connectToService:(NSNetService *)service
118118 [self .connections addObject: connection];
119119}
120120
121+ - (void )connectToHost : (NSString *)theHost port : (NSUInteger )thePort
122+ {
123+ // create and configure a connection
124+ // the connection takes care of resovling the net service
125+ AsyncConnection *connection = [AsyncConnection connectionWithHost: theHost port: thePort];
126+ connection.delegate = self;
127+ [connection start ];
128+ [self .connections addObject: connection];
129+ }
130+
121131// send object to all servers
122132- (void )sendCommand : (AsyncCommand)command object : (id <NSCoding >)object responseBlock : (AsyncNetworkResponseBlock)block ;
123133{
You can’t perform that action at this time.
0 commit comments