We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
class Executor { Executor(std::function<void(std::buffer &encoded_bytes)> func) :on_request_coming_callback_(func) { } std::function<void(std::buffer &encoded_bytes)> on_request_coming_callback_; };
class RpcServer { void CreateService(service_name service) { } Executor executor_ = Executor([](std::buffer &encoded_byte) { auto rpc_request = codec_.decode(); str service = rpc_request.service_name(); str method = rpc_request.method_name(); tuple args = rpc_request.args(); Invoke(service, method, args); }); CppCodec codec_; map<service_name, service_instance> services_; };
Sorry, something went wrong.
Since we should write much code for JNI implementation. It's more graceful to use netty for Java if we define the protocol.
No branches or pull requests
The text was updated successfully, but these errors were encountered: