Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

How can I send a self-defined Java-class object(client) to fit a C++ class (server) by RPC #103

Open
luppiterw opened this issue Mar 16, 2017 · 1 comment

Comments

@luppiterw
Copy link

For example:
In server, a function named testClass(CPPClass cc), procedure name is "xxx.xxx"

class CPPClass {
int a;
int b;
int c;
std::vector<double> d;
}

In client, how can I use call(xxx.xxx, ???) to fit the server?
I tried a Java class-object to "???", but failed.
SOS...

@Jopie64
Copy link

Jopie64 commented Oct 8, 2017

Just make a serializable java class that matches the c++ class and use an instance of it to call the RPC?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants