Communication Between C Programs 

Purpose

A C program uses a CPI-C call CMINIT/CMALLC to start a C program on another host, and exchanges data with this program via CPI-C.

RFC is not supported for this constellation.

Prerequisites / Process flow

With this constellation, the following requirements must be met:

DEST=<symbolic destination>

LU=<name of the target host>

TP=<name of the target host>

:
< poss. host type define, see
Define Variables for Host Types >
.
#define SOCK 1
#include "cpic.h"
:
main(int argc,char **argv)
{
:
CMACCP(..);
:.
}

To link the C program, use the function library cpictlib.o.

:
< poss. host type define, see
Define Variables for Host Types >
:
#define SOCK 1
#include "cpic.h"
:
main(int argc,char **argv)
{
:
CMINIT(..);
:
}

To link the C program, use the function library cpictlib.o.