DCE Application Programming Guide
Sample Mixed-Language Application
HP NonStop DCE Application Programming Guide—429551-003
B-2
The Attribute Configuration File (ACF)
The Attribute Configuration File (ACF)
The attribute configuration file (ACF) is shown in Figure B-2.
The Server File
The server file is shown in Figure B-3.
Figure B-1. The IDL File in a Mixed-Language Application
/* turnaround.idl */
[
uuid (B14AAF44-698B-101B-8AAE-32000004A0000),
version(1.0)
endpoint(“ncacn_ip_tcp:[1044]”,”ncadg_ip_udp:[1044]”),
pointer_default(unique)
]
interface turnaround
{
void Turnaround(
 [in, out] unsigned long *iterations,
 [in] unsigned long buflen,
 [in, out, size_is(buflen)] unsigned char buffer[*]
 );
void TurnaroundCobol(
 [in, out] unsigned long *iterations,
 [in] unsigned long buflen,
 [in, out, size_is(buflen)] unsigned char buffer[*]
 );
Figure B-2. The ACF in a Mixed-Language Application
/* turnaround.acf */
[implicit_handle(handle_t turnaround_IfHandle)]
interface turnaround
{
Figure B-3. The Server File in a Mixed-Language Application (page 1 of 3)
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <dce/rpc.h>
#include “errmac.h”
#include “turnaround.h”










