vrpc 2.5.0 → 3.0.0-alpha.2
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 +66 -0
- package/README.md +33 -56
- package/binding.gyp.no-auto +4 -26
- package/browser/vrpc.js +1 -1
- package/index.js +2 -2
- package/package.json +13 -17
- package/vrpc/VrpcAdapter.js +275 -233
- package/vrpc/VrpcAgent.js +204 -185
- package/vrpc/{VrpcRemote.js → VrpcClient.js} +295 -288
- package/vrpc/VrpcNative.js +307 -0
- package/vrpc/{vrpc.hpp → adapter.hpp} +1001 -1115
- package/vrpc/addon.cpp +5 -5
- package/vrpc/json.hpp +1769 -870
- package/vrpc/vrpc-agent-js +4 -4
- package/README.rst +0 -18
- package/third_party/include/catch.hpp +0 -12749
- package/third_party/install.sh +0 -22
- package/vrpc/VrpcLocal.js +0 -264
- package/vrpc/VrpcLocal.py +0 -171
- package/vrpc/__init__.py +0 -1
- package/vrpc/module.cpp +0 -183
package/vrpc/addon.cpp
CHANGED
|
@@ -11,7 +11,7 @@ __\/\\\_______\/\\\__/\\\///////\\\___\/\\\/////////\\\____/\\\////////__
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Enables Node.js to run VRPC as native addon.
|
|
14
|
-
Author: Dr. Burkhard C. Heisen (https://github.com/
|
|
14
|
+
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>.
|
|
@@ -42,11 +42,11 @@ SOFTWARE.
|
|
|
42
42
|
#include <mutex>
|
|
43
43
|
#include <thread>
|
|
44
44
|
|
|
45
|
-
#include
|
|
46
|
-
#include
|
|
45
|
+
#include <vrpc/json.hpp>
|
|
46
|
+
#include <vrpc/adapter.hpp>
|
|
47
47
|
|
|
48
48
|
#ifndef VRPC_WITH_DL
|
|
49
|
-
#include <
|
|
49
|
+
#include <adapter.cpp>
|
|
50
50
|
#endif
|
|
51
51
|
|
|
52
52
|
#define _VRPC_MAX_HANDLERS 32
|
|
@@ -301,7 +301,7 @@ void onCallback(const FunctionCallbackInfo<Value>& args) {
|
|
|
301
301
|
if (nHandlers >= _VRPC_MAX_HANDLERS) {
|
|
302
302
|
isolate->ThrowException(Exception::TypeError(
|
|
303
303
|
String::NewFromUtf8(isolate,
|
|
304
|
-
"Exceeded maximum number of handler
|
|
304
|
+
"Exceeded maximum number of handler registrations",
|
|
305
305
|
NewStringType::kNormal)
|
|
306
306
|
.ToLocalChecked()));
|
|
307
307
|
}
|