Matthias247 / jawampa

Web Application Messaging Protocol (WAMP v2) support for Java
Apache License 2.0
148 stars 57 forks source link

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

Open luppiterw opened 7 years ago

luppiterw commented 7 years ago

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 commented 7 years ago

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