#include <atomic>
#include <grpc++/grpc++.h>
#include <jni.h>
#include "helloworld.grpc.pb.h"
Go to the source code of this file.
◆ Java_io_grpc_helloworldexample_cpp_HelloworldActivity_sayHello()
JNIEXPORT jstring JNICALL Java_io_grpc_helloworldexample_cpp_HelloworldActivity_sayHello |
( |
JNIEnv * |
env, |
|
|
jobject |
obj_unused, |
|
|
jstring |
host_raw, |
|
|
jint |
port_raw, |
|
|
jstring |
message_raw |
|
) |
| |
◆ Java_io_grpc_helloworldexample_cpp_HelloworldActivity_startServer()
JNIEXPORT void JNICALL Java_io_grpc_helloworldexample_cpp_HelloworldActivity_startServer |
( |
JNIEnv * |
env, |
|
|
jobject |
obj_this, |
|
|
jint |
port_raw |
|
) |
| |
◆ StartServer()
void StartServer |
( |
JNIEnv * |
env, |
|
|
jobject |
obj, |
|
|
jmethodID |
is_cancelled_mid, |
|
|
int |
port |
|
) |
| |
◆ stop_server()