From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5a763bbb86905667,start X-Google-Attributes: gidfee84,public X-Google-Thread: 111308,5a763bbb86905667,start X-Google-Attributes: gid111308,public X-Google-Thread: 1164f8,5a763bbb86905667,start X-Google-Attributes: gid1164f8,public X-Google-Thread: f678f,5a763bbb86905667,start X-Google-Attributes: gidf678f,public From: Jerome Forissier Subject: Problem using RPC and MIDL on Digital Unix/PATHWORKS (long) Date: 1997/08/12 Message-ID: <33F08F09.1B6@taec.enet.dec.com>#1/1 X-Deja-AN: 264093275 Organization: Digital Equipment CTE - SISB Telecom Newsgroups: comp.client-server,comp.sys.dec,comp.unix.osf.misc,comp.unix.osf.osf1 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