Classes | Functions
grpc-helloworld.cc File Reference
#include <atomic>
#include <grpc++/grpc++.h>
#include <jni.h>
#include "helloworld.grpc.pb.h"
Include dependency graph for grpc-helloworld.cc:

Go to the source code of this file.

Classes

class  GreeterClient
 
class  GreeterServiceImpl
 

Functions

JNIEXPORT jstring JNICALL Java_io_grpc_helloworldexample_cpp_HelloworldActivity_sayHello (JNIEnv *env, jobject obj_unused, jstring host_raw, jint port_raw, jstring message_raw)
 
JNIEXPORT void JNICALL Java_io_grpc_helloworldexample_cpp_HelloworldActivity_startServer (JNIEnv *env, jobject obj_this, jint port_raw)
 
void StartServer (JNIEnv *env, jobject obj, jmethodID is_cancelled_mid, int port)
 
std::atomic< boolstop_server (false)
 

Function Documentation

◆ 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 
)

Definition at line 107 of file grpc-helloworld.cc.

◆ 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 
)

Definition at line 131 of file grpc-helloworld.cc.

◆ StartServer()

void StartServer ( JNIEnv *  env,
jobject  obj,
jmethodID  is_cancelled_mid,
int  port 
)

Definition at line 48 of file grpc-helloworld.cc.

◆ stop_server()

std::atomic<bool> stop_server ( false  )


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:16