Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Jerome Forissier <forissier@taec.enet.dec.com>
Subject: Problem using RPC and MIDL on Digital Unix/PATHWORKS (long)
Date: 1997/08/12	[thread overview]
Message-ID: <33F08F09.1B6@taec.enet.dec.com> (raw)


Hi,

[My question in brief]

==> Does anyone has documentation on using the Microsoft IDL (MIDL)
compiler included in the PATHWORKS v6 kit for developing RPC apps ???

[Now the whole story]

We are currently developing a client/server application involving a
Digital Unix 4.0 server and a Windows NT 4.0 client communicating
through RPC.
We would like to use the "callback" feature, which is a Microsoft
extension to the IDL
language, and which would really simplify our job since we need to
remotely trigger function calls in the _client_ from the _server_.
One of us proposed to use the Microsoft IDL compiler (MIDL) that is
bundled with PATHWORKS v6 for Digital Unix to achieve this goal.
So we have started developping the Windows NT client, along with a
simplified NT server for testing purposes (it simply traces the function
calls).
Now, we are trying to get this server work on Digital Unix, with no luck
up to now :-{

The client and the server basically do the following:

Client (Windows NT platform)
----------------------------
main()
{
  RpcStringBindingCompose(...);
                        // protocol ncacn_ip_tcp,
                        // we provide a fixed IP adress and port number
  RpcBindingFromStringBinding(...);
  RpcTryExcept {
    some_remote_procedure_calls();
  }
  RpcExcept(1) {
    // RPC exception handling
  }
  RpcEndExcept
}

Server (Digital Unix platform)
------------------------------
main()
{
  RpcServerUseProtseqEp(...); // protocol ncacn_ip_tcp,
                              // we provide a fixed port number
  RpcServerRegisterIf(...);
  RpcServerListen(...);
}

On the Unix system, the interface definition file is compiled by:
  midl -ms_ext my_file.idl
...and the C files are compiled with -I/usr/include/lmx and linked with
  -lmsrpc -llmx -llmxtask
(since we have no documentation on application development using
PATHWORKS tools, we had to guess this).
The software installed on the Unix system includes PATHWORKS v6 and DCE
2.0.

The server code works perfectly on Windows NT, but the
RpcServerUseProtseqEp() function returns an error status (0x1b) on the
Unix machine. This status corresponds to the RPC_S_SERVER_UNAVAILABLE
constant in /usr/include/lmx/rpcerr.h.
What does this mean ? Does it denote a configuration problem regarding
PATHWORKS or DCE ? I should mention that a simple demo using the "pure"
DCE rpc_server_use_protseq_ep() function (from libdce.so) works without
a hitch on the same machine.

I hope some of you can give some specific info, or provide pointers to
development documentation.
We are getting a bit lost in the NT/Unix/PATHWORKS/DCE worlds...
Please also reply by e-mail.

Thanks, and sorry for the long post.

-- 
Jerome Forissier                                \|/ ____ \|/
Digital CTE - SISB Telecom                      "@'/ ,. \`@"
950 route des Colles                            /_| \__/ |_\
BP 027 06901 Sophia Antipolis - France             \__U_/
e-mail : forissier@taec.enet.dec.com



             reply	other threads:[~1997-08-12  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-12  4:00 Jerome Forissier [this message]
1997-08-15  4:00 ` Problem using RPC and MIDL on Digital Unix/PATHWORKS (long) NobleNet Inc.
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox