LGMP Programming Interface

(MS Windows Version 1.0)

 Last edited: 07.22.1999 21:17 
by Helge Chr. Rutz
based on the "Unix" version
by Jochen Schlick

This is the description for the MS Windows version of the LGMP (Local Group based Multicast Protocol) programming interface.
User application programs can use LGMP for exchanging data by dynamically or statically linking the LGMP library file (lgmp.dll or lgmpd.dll). To link the library to your application you only need the interface include file (lgmp.h) and the corresponding linker file (lgmp.lib or lgmpd.lib). 
Only lgmpd.dll supports debug output to stderr or a log file. It is build with debug infos and without compiler optimization to allow code-debugging. But you should only debug the following interface functions, because debugging the internal threads will conflict with the threads dependencies - use the logfile instead.
On the other hand lgmp.dll is optimized for speed and does not support debug message logging.
The dynamic link libraries were build with MS VC++ 5.0. However the *.lib files were created to allow linking with compilers/linkers of other vendors. ( I hope :-)) never tested yet - please let me know if you succeed or not).

If you want to write applications for several supported platforms, Unix-Versions and MS Windows, you should notice the following.
This MS Windows version 1.0 is the counterpart of the Unix version 2.0E of the LGMP protocol. But there exist some minor differences and restrictions for the MS Windows version.
There is a new function lgmp_init_log() and an additional timeout parameter in the lgmp_end() function. In addition, please notice that there is no Pthread like multithreaded library support under Windows, and you should avoid thread termination to stop blocking functions. Therefore lgmp_end() has an additional timeout parameter for MS Windows.
 
These are the calls that applications can use to interact with LGMP.

lgmp_init_log
lgmp_init
lgmp_send 
lgmp_sendstatus 
lgmp_receive
lgmp_end
lgmp_abort

Below is the description of these library calls
 


NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES

Back to TOC


NAME
SYNOPSIS
DESCRIPTION
 RETURN VALUES
EXAMPLES

Back to TOC


NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES

Back to TOC


NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES

Back to TOC


NAME
SYNOPSIS
 DESCRIPTION
RETURN VALUES

Back to TOC


NAME
SYNOPSIS
 DESCRIPTION
 
RETURN VALUES

everything is OK, all resources are freed
-1  an error occurred, see debug output for details

Back to TOC


NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES

  0 

everything is OK, all resources are freed
 -1  an error occurred, see debug output for details

Back to TOC