tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tsp-devel] FW: ONC RPC on Win NT


From: DUFRENNE, Yves
Subject: [Tsp-devel] FW: ONC RPC on Win NT
Date: Wed, 30 Apr 2003 14:55:09 +0200

J'essaye actuellement un portage d'un code qui fait du RPC de SUN vers Windows (Désolé) avec MinG dans le cadre d'Astrium. Cela pourrait peut-être nous orienter sur l'avenir du canal de distribution de commande de TSP. Mais il y a quelques PBs... cf mail que j'envois aux mainteneurs de ce package. Si quelqu'un a une autre idée de RPC sous Windows, avant de partir dans socket / XML RPC / Corba ... / Télépathie
 
-----Original Message-----
From: DUFRENNE, Yves
Sent: Tuesday, April 29, 2003 6:57 PM
To: 'address@hidden'; 'address@hidden'
Subject: ONC RPC on Win NT

Hello.
 
First of all, thanks a lot for the job you do in maintaining this package. I've found it pretty easy to use, especially with the tests released inside.
I work in Astrium Toulouse, and I was asked to port some code from SUN workstation to PC under Win NT.
This code use intensively RPC, and I was very happy when I found your package.
 
But I use MinGW32 (The Minimum GNU tools under Windows) as compiler, and managed to use your package with it. But I had to make a little hack in your code, that I give back you if you might want it :
 
In "svc_auth.h" Line 56, replace struct by enum, in compliance to "auth.h" declaration.
extern enum auth_stat _authenticate();
 
In "types.h" Line 82, encapsulate u_int declaration to avoid gcc crying about redefinition from winsock.h
#if !defined ( _BSDTYPES_DEFINED )
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned short u_short;
#define _BSDTYPES_DEFINED
#endif /* !defined  _BSDTYPES_DEFINED */
 
And I got a question about your roadmap. Do you plan to implement the "-N" option, for new RPC style ?
(It's support for multiple arguments in function calls) or how could I do to pass several value in a single RPC call ?
 
Last question : I may want to use your package in a L-GPL project called "Transport Sample Protocol", dedicated to data distribution on TCP/IP
(see http://savannah.nongnu.org/projects/tsp for more information). What is your kind of licence / way of distribution ?
 
Thanks in advance for your answers.
 
Best regards.
 
Yves Dufrenne.
 
 Et la réponse
Hi,
DUFRENNE, Yves wrote:
> But I use MinGW32 (The Minimum GNU tools under Windows) as compiler, and
> managed to use your package with it. But I had to make a little hack in your
> code, that I give back you if you might want it :
Ahh, very welcome since at the moment we think about recommending MingW
to our partners from process industries. A former colleague once tested
MingW (quite some time ago), but at that time DLL creation was not
really satisfactory but a cumbersome process. Since MingW is now in its
2.0 incarnation we are thinking about supporting it now.
Do you create the oncrpc.dll with MingW?
Besides the changes in the source code you mentioned, what other changes
are necessary? For instance, do the makefiles need changes (I assume
so). I would be interested in adding the appropriate makefiles to the
package.
> In "svc_auth.h" Line 56, replace struct by enum, in compliance to "auth.h"
> declaration.
Sad. What a long-standing bug...
> And I got a question about your roadmap. Do you plan to implement the "-N"
> option, for new RPC style ?
> (It's support for multiple arguments in function calls) or how could I do to
> pass several value in a single RPC call ?
Short answer: no. Background is that we lack the resources to really
maintain the ONC/RPC Win package and all we need is the oncrpc.dll.
Unfortunately (or fortunately, depending on one's view) we do not need
rpcgen and from my experience with maintaining the Java ONC/RPC package
RemoteTea I'm not that eager to spend my time on the C rpcgen. Bottom
line: you are very well welcome to add the missing functionality ;) (Now
that is once again one of those answers that satisfy the one answering
but not the one asking.)
>
> Last question : I may want to use your package in a L-GPL project called
> "Transport Sample Protocol", dedicated to data distribution on TCP/IP
> (see http://savannah.nongnu.org/projects/tsp
> <http://savannah.nongnu.org/projects/tsp> for more information). What is
> your kind of licence / way of distribution ?
Well, it's not my license ... since the whole package was once ported by
Marting Gergeleit from the genuine Sun sources, Sun's BSD copyright does
apply. And this allows you to freely modify and redistribute the whole
stuff. Especially in mix with LGPL there is no problem. What we
typically do depends on the kind of distribution: source or binary. For
binary we usually only include oncrpc.dll on the client side and
oncrpc.dll and portmap.exe for the server side.
> Thanks in advance for your answers.
You are very welcome.
With best regards,
Harald Albrecht
--
Dr. Harald Albrecht
Chair of Process Control Engineering
RWTH Aachen University of Technology
Turmstrasse 46, D-52064 Aachen, Germany
Tel.: +49 241 80-97703, Fax: +49 241 80-92238

Attachment: important_notice.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]