WrapperCC

WrapperCC

new WrapperCC(url)

Description:
  • Implements a wrapper to C/C++ implemented functions on the server side.

    • This is the client side of a simple client/server C/C++ wrapping mechanism.

    • The interface is used in HTML page, using a construct of the form:

    <script type='text/javascript' src='.../aideweb.js'></script>
    <script type='text/javascript'>
     var ccWrapper = New WrapperCC("http://localhost:8080/_ccwrapper"); 
    
     let result = ccWrapper.call(query);
    
Parameters:
Name Type Description
url string

The service URL.

Methods

call(query, callback)

Description:
  • Calls a C/C++ implemented function.

Parameters:
Name Type Description
query string

The function query, a string of the form name=value&other_name=other_value.

callback callback

The callback that handles the returned value.

  • Runs the callback(value: string) function called with the returned value.
    • The returned value may parse to a JSON string.