User`s guide

Page 165
14 MidJet NT Monitor DLL
This DLL is constructed using Borland C+++ Builder and contains two API’s:
SndMsg and SndErr. Together with the DLL file there is also a LIB file called
MidJet.lib.
14.1 SndMsg API
This API will send a message to a TCP/IP server. The message is built up of
a telephone number, a message text and an alert code.
The IP-address and port number of the server has to be specified in the
ConfigTool of the MidJet NT Monitor software.
Prototype
extern “C” int_export SndMsg (char * phone, char * text, char alert);
If your program is a C program, you can discard the extern “C” clause.
Parameters
Phone is a NULL-terminated string of a telephone number. Maximum size is
20 bytes.
Text is a NULL-terminated string of text. Maximum size is 160 bytes.
Alert is a char.
Return value
0 = SndMsg successful.
-1 = SndMsg failed due to communication error. An explanation can be
retrieved by SndErr API (see below).
>0 The server returned this code. The meaning of the code is beyond this
API. Please consult the server documentation.
14.2 SndErr API
This API will return a message text explaining the cause of a communication
error that occurred when running the SndMsg API.
Prototype
extern “C” char * _export SndErr ();
If your program is a C program, you can discard the extern “C” clause.
Parameters
None.
Return value
A pointer to a NULL-terminated error text string.