vrpc 3.0.0-alpha.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/LICENSE +1 -1
- package/README.md +8 -9
- package/browser/vrpc.js +1 -1
- package/package.json +8 -5
- package/vrpc/VrpcAdapter.js +194 -171
- package/vrpc/VrpcAgent.js +18 -17
- package/vrpc/VrpcClient.js +260 -113
- package/vrpc/VrpcNative.js +25 -2
- package/vrpc/adapter.hpp +4 -2
- package/vrpc/addon.cpp +1 -1
package/vrpc/adapter.hpp
CHANGED
|
@@ -12,11 +12,11 @@ __\/\\\_______\/\\\__/\\\///////\\\___\/\\\/////////\\\____/\\\////////__
|
|
|
12
12
|
|
|
13
13
|
Non-intrusively binds any C++ code and provides access in form of asynchronous
|
|
14
14
|
remote procedural callbacks (RPC).
|
|
15
|
-
Author: Dr. Burkhard C. Heisen (https://github.com/
|
|
15
|
+
Author: Dr. Burkhard C. Heisen (https://github.com/heisenware/vrpc-hpp)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
|
|
19
|
-
Copyright (c) 2018 -
|
|
19
|
+
Copyright (c) 2018 - 2022 Dr. Burkhard C. Heisen
|
|
20
20
|
<burkhard.heisen@heisenware.com>.
|
|
21
21
|
|
|
22
22
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -373,6 +373,7 @@ template <std::size_t I = 0, typename... Args>
|
|
|
373
373
|
I<sizeof...(Args), void>::type get_signature(std::string& signature,
|
|
374
374
|
const std::tuple<Args...>& t) {
|
|
375
375
|
json j = {{"t", std::get<I>(t)}};
|
|
376
|
+
if (!signature.empty()) signature += ":";
|
|
376
377
|
signature += j["t"].type_name();
|
|
377
378
|
return get_signature<I + 1, Args...>(signature, t);
|
|
378
379
|
}
|
|
@@ -389,6 +390,7 @@ inline std::string get_signature() {
|
|
|
389
390
|
inline std::string get_signature(const json& json) {
|
|
390
391
|
std::string signature;
|
|
391
392
|
for (const auto& it : json) {
|
|
393
|
+
if (!signature.empty()) signature += ":";
|
|
392
394
|
signature += it.type_name();
|
|
393
395
|
}
|
|
394
396
|
return signature.empty() ? signature : "-" + signature;
|
package/vrpc/addon.cpp
CHANGED
|
@@ -15,7 +15,7 @@ Author: Dr. Burkhard C. Heisen (https://github.com/heisenware/vrpc)
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
|
|
18
|
-
Copyright (c) 2018 -
|
|
18
|
+
Copyright (c) 2018 - 2022 Dr. Burkhard C. Heisen
|
|
19
19
|
<burkhard.heisen@heisenware.com>.
|
|
20
20
|
|
|
21
21
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|