new WrapperCCService(server, route, target_name)
- Description:
Implements a wrapper to C/C++ implemented functions.
-
A POST service is attached to the given route.
-
This is the server side of a simple client/server C/C++ wrapping mechanism.
-
The local service is attached to an express web mechanism, using a construct of the form:
// Loads required packages const express = require("express"); const server = express(); const CCWrapperService = require("./CCWrapper.js"); // Defines a minimal persistantdata service new WrapperCCService(server, "/_ccwrapper"); server.listen(8080);
- The C/C++ wrapping mechanism is implemented vis a unique C
wrap(query)
function, stored in awrap.cpp
file in the./src
directory.
-
Parameters:
Name | Type | Default | Description |
---|---|---|---|
server |
express | The express server mechanism. |
|
route |
string |
/_ccwrapper
|
The route to this service. |
target_name |
string |
wrapper
|
The wrapper name as defined in
|