|
mpsStatus(* | createConfig )(mpsClientConfig **config) |
| Initialize pointer to MATLAB Production Server client configuration instance with default values. More...
|
|
mpsStatus(* | createContext )(mpsClientContext **context, const mpsClientConfig *config) |
| Initialize the MATLAB Production Server client execution context. More...
|
|
void(* | destroyConfig )(mpsClientConfig *config) |
| Clean up the memory allocated to the client configuration instance. More...
|
|
void(* | destroyContext )(mpsClientContext *context) |
| Clean up the memory allocated for the client execution context. More...
|
|
void(* | destroyLastErrorInfo )(mpsErrorInfo *errorInfo) |
| Cleans up dynamic memory allocated while initializing mpsErrorInfo instance. More...
|
|
mpsStatus(* | feval )(mpsClientContext *context, const char *url, int nlhs, mpsArray *plhs[], int nrhs, const mpsArray *prhs[]) |
| Invoke MATLAB function hosted by a server instance and available at a Url. More...
|
|
const char *(* | getCAFile )(const mpsClientConfig *config) |
| Get Certificate Authority file. More...
|
|
const char *(* | getClientCertFile )(const mpsClientConfig *config) |
| Get client certificate file. More...
|
|
void(* | getLastErrorInfo )(mpsClientContext const *context, mpsErrorInfo *errorInfo) |
| Access the error thrown while invoking a MATLAB function from the client A MATLAB function invocation failure can happen due to one of the following reasons: More...
|
|
const char *(* | getPrivateKeyFile )(const mpsClientConfig *config) |
| Get the private key file. More...
|
|
const char *(* | getPrivateKeyPasswd )(const mpsClientConfig *config) |
| Get password for private key file. More...
|
|
unsigned int(* | getResponseSizeLimit )(const mpsClientConfig *config) |
| Get the responze size limit value, in bytes, for the client. More...
|
|
unsigned long(* | getResponseTimeOutSec )(const mpsClientConfig *config) |
| Get the timeout value, in seconds, for the client to receive response from the server. More...
|
|
const char *(* | getRevocationListFile )(const mpsClientConfig *config) |
| Get the revocation list file. More...
|
|
mpsLogical(* | getVerifyHost )(const mpsClientConfig *config) |
| Get the host verification flag value. More...
|
|
mpsLogical(* | getVerifyPeer )(const mpsClientConfig *config) |
| Get the peer verification flag value. More...
|
|
void(* | setCAFile )(mpsClientConfig *config, const char *caFile) |
| Set file Certificate Authority file in PEM format. More...
|
|
void(* | setClientCertFile )(mpsClientConfig *config, const char *certFile) |
| MPS_CLIENT_1_1 version provides support for request execution using HTTPS protocol for secure client-server communication. More...
|
|
void(* | setPrivateKeyFile )(mpsClientConfig *config, const char *pkFile) |
| Set private key file in PEM format. More...
|
|
void(* | setPrivateKeyPasswd )(mpsClientConfig *config, const char *passwd) |
| Set password for private key file. More...
|
|
void(* | setResponseSizeLimit )(mpsClientConfig *config, unsigned int value) |
| Set the response size limit value, in bytes, for the client. More...
|
|
void(* | setResponseTimeOutSec )(mpsClientConfig *config, unsigned long value) |
| Set the timeout value, in seconds, for the client to receive response from the server. More...
|
|
void(* | setRevocationListFile )(mpsClientConfig *config, const char *crlFile) |
| Set the revocation list file. More...
|
|
void(* | setVerifyHost )(mpsClientConfig *config, mpsLogical verifyHost) |
| Setting this flag to true will verify the hostname in thr url against the common name in the certificate. More...
|
|
void(* | setVerifyPeer )(mpsClientConfig *config, mpsLogical verifyPeer) |
| Setting this flag to false will not peform the authentication of server certificate. More...
|
|
MATLAB Production Server client API container.
mpsClientRuntime
provides functions needed to create the MATLAB Production Server client execution context, configure it, and use the execution context to execute MATLAB functions hosted by an MATLAB Production Server instance.
Definition at line 306 of file client.h.
Invoke MATLAB function hosted by a server instance and available at a Url.
MATLAB Production Server clients invoke MATLAB functions hosted by a server instance using a Url with the following format: http://<hostname>:<port_number>/<archive_name>/<MATLAB_function_name>
.
The following Url exposes the MATLAB function mymagic
deployed in magic.ctf
at port 9910 localhost.
http://localhost:9910/magic/mymagic
The inputs and outputs are of type mpsArray
.
If the return status of this function is not success, the root cause of the failure is accessed by invoking getLastErrorInfo()
.
- Parameters
-
context | Client context that holds a handle to the underlying HTTP framework instance |
url | Url to the MATLAB function |
nlhs | Number of outputs (number of left hand side parameters) |
plhs | Pointer to the output |
nrhs | Number of input arguments (number of right hand side parameters) |
prhs | Pointer to the inputs |
- Returns
- Status of execution.
Definition at line 400 of file client.h.