| Availability: |
| |||
| Property/method value type: | Boolean primitive | |||
| JavaScript syntax: | NES | registerCFunction(aFunctionName, aLibrary, aCFunction) | ||
| Argument list: | aCFunction | The name of the C function in the library | ||
| aFunctionName | The name of the function in the JavaScript environment | |||
| aLibrary | A path to the library containing the C function | |||
External library functions can be registered with the Netscape Enterprise Server and can then be called from scripts running in the request-response loop.
Such registered functions are invoked with the callC() method.
The registration process creates a mapping between the JavaScript environment and the C language environment. This suggests that the two need not be named the same although it is good practice to preserve the names recognizably across such wrapping mechanisms.
The C function is encapsulated in a JavaScript object wrapper.
A Boolean true value is returned if the registration succeeds and a Boolean false if it fails.
| See also: | Netscape Enterprise Server |
| Prev | Home | Next |
| response.redirect() | Up | response.request |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||