OSF DCE Application Development Guide--Core Components
OSF DCE Application Development Guide—Core Components
LIBDIRS = -L${DCEROOT}/usr/lib
LIBS = -ldce
LIBALL = ${LIBDIRS} ${LIBS}
INCDIRS = -I. -I${DCEROOT}/share/include
CFLAGS = -g ${INCDIRS}
IDLFLAGS = -v ${INCDIRS} -cc_cmd "${CC} ${CFLAGS} -c"
all: greet_client greet_server
greet.h greet_cstub.o greet_sstub.o: greet.idl
${IDL} ${IDLFLAGS} greet.idl
greet_client: greet.h greet_client.o util.o greet_cstub.o
${CC} -o greet_client greet_client.o greet_cstub.o util.o \
${LIBALL}
greet_server: greet.h greet_server.o greet_manager.o util.o \
greet_sstub.o
${CC} -o greet_server greet_server.o greet_manager.o \
greet_sstub.o util.o ${LIBALL}
greet_client.c greet_server.c util.c: util.h
greet_manager.c greet_client.c greet_server.c: greet.h
11.7 Running the greet Programs
Running the greet application involves starting the server program and then running the
client program. Before starting the server program, you need write access to the CDS
namespace and you need to ensure that the dced process is running on the server host.
For more information, see the dced(8dce) reference page.
You start the server program by using a CDS entry such as the following:
greet_server /.:/greet_entry
Listening...
You start the client on another host (or even the same host) by using the same CDS entry
as follows:
greet_client /.:/greet_entry
The following message is printed on the server’s host:
The client says: hello, server
The following reply is printed on the client’s host:
The Greet Server said: Hi, client!
11 − 24 Tandem Computers Incorporated 124245