The following functions are provided by the Prosody X API:
API call | W | Description |
---|---|---|
sm_open_prosody_s_v3() | Open a card for use with Prosody S version 3. | |
sm_open_prosody_x() | Open a card for use with Prosody X. |
This document is also available as separate pages for each function.
int sm_open_prosody_s_v3(struct sm_open_prosody_s_v3_parms *openp)
typedef struct sm_open_prosody_s_v3_parms { char *ps_locator; /* in */ tSMCardId card_id; /* in */ } SM_OPEN_PROSODY_S_V3_PARMS;
Opens a Prosody S version 3 virtual card for use with the Prosody API. This
function must be invoked by applications using the V6 interface
to register the tSMCardId
value for passing into any
other Prosody API function which refers to this card.
The security key in the ps_locator is only validated when establishing a connection with the virtual module. Supplying a incorrect key will result in an error return from a function call some time after sm_open_module() has reported success, as the connection is made asynchronously.
An open card can be closed by calling sm_close_prosody().
getaddrinfo()
),
then a colon followed by the port the server is listening on.
If the server is using a security key, the IP address and port is followed
by a slash (/) character and the security key. For example,
"10.202.100.254:2030/mykey".
Note that IPv6 addresses in numeric form should be enclosed in square brackets, for example "[2010:836B:4179::836B:4179]:2030/mykey".
0 if call completed successfully, otherwise a standard error.
int sm_open_prosody_x(struct sm_open_prosody_x_parms *openp)
typedef struct sm_open_prosody_x_parms { char *px_locator; /* in */ tSMCardId card_id; /* in */ } SM_OPEN_PROSODY_X_PARMS;
Opens a Prosody X card for use with the Prosody API. This
function must be invoked by applications using the V6 interface
to register the tSMCardId
value for passing into any
other Prosody API function which refers to this card.
The security key in the px_locator is only validated when establishing a connection with a module on the card. Supplying a incorrect key will result in an error return from a function call some time after sm_open_module() has reported success, as the connection is made asynchronously.
Note: Almost all uses of a Prosody X card require the datafeed firmware module to be downloaded.
An open card can be closed by calling sm_close_prosody().
getaddrinfo()
).
If the card is using a security key, the IP address is followed
by a slash (/) character and the security key.
Note that IPv6 addresses in numeric form should be enclosed in square brackets, for example "[2010:836B:4179::836B:4179]/mykey".
0 if call completed successfully, otherwise a standard error.
These functions constitute the Prosody X API.