|
|
@ -43,7 +43,7 @@ static NSString * const kHostAddress = @"localhost:50051"; |
|
|
|
int main(int argc, char * argv[]) { |
|
|
|
int main(int argc, char * argv[]) { |
|
|
|
@autoreleasepool { |
|
|
|
@autoreleasepool { |
|
|
|
[GRPCCall useInsecureConnectionsForHost:kHostAddress]; |
|
|
|
[GRPCCall useInsecureConnectionsForHost:kHostAddress]; |
|
|
|
[GRPCCall setUserAgentPrefix:@"HelloWorld/1.0"]; |
|
|
|
[GRPCCall setUserAgentPrefix:@"HelloWorld/1.0" forHost:kHostAddress]; |
|
|
|
|
|
|
|
|
|
|
|
HLWGreeter *client = [[HLWGreeter alloc] initWithHost:kHostAddress]; |
|
|
|
HLWGreeter *client = [[HLWGreeter alloc] initWithHost:kHostAddress]; |
|
|
|
|
|
|
|
|
|
|
|