* Problem using RPC and MIDL on Digital Unix/PATHWORKS (long)
@ 1997-08-12 4:00 Jerome Forissier
1997-08-15 4:00 ` NobleNet Inc.
0 siblings, 1 reply; 2+ messages in thread
From: Jerome Forissier @ 1997-08-12 4:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Problem using RPC and MIDL on Digital Unix/PATHWORKS (long)
1997-08-12 4:00 Problem using RPC and MIDL on Digital Unix/PATHWORKS (long) Jerome Forissier
@ 1997-08-15 4:00 ` NobleNet Inc.
0 siblings, 0 replies; 2+ messages in thread
From: NobleNet Inc. @ 1997-08-15 4:00 UTC (permalink / raw)
In article <33F08F09.1B6@taec.enet.dec.com>,
Jerome Forissier <forissier@taec.enet.dec.com> wrote:
>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_.
Please contact NobleNet for ONC/RPC tools and solutions for UNIX,
Windows (3.1/95/NT), Macintosh, VMS, OS/2, NetWare, VxWorks, etc.
NobleNet, Inc.
337 Turnpike Road
Southboro, MA 01772
Voice +1 508 460 8222
Fax +1 508 460 3456
<sales@noblenet.com>
<http://www.noblenet.com/>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-08-15 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-12 4:00 Problem using RPC and MIDL on Digital Unix/PATHWORKS (long) Jerome Forissier
1997-08-15 4:00 ` NobleNet Inc.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox