[Hamlib-developer] Re: perl bindings, was Re: ft-817
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: <si...@al...> - 2002-01-11 01:08:35
|
Hi Stephane, Yep, I was down that road of making direct Perl bindings for hamlib (which certainly would be useful), but I'm affraid it won't fit in with my application... I'd like to have the rig initialized once, then run the script many times. I think with direct Perl bindings, the rig would need to be initialized each time the script were to run. A-ha!!! I got it... write a simple C++ "proxy" that implements the C++ rig interface, but makes all the calls via RPC to rpcrig... then off to Perl xs to make it a Perl module! "I'll get right on it" as they say! :) Thanks, -Chris, aa1vl ----- Original Message ----- From: "Stephane Fillod" <f4...@fr...> To: <si...@al...> Cc: "Hamlib developers" <ham...@li...> Sent: Wednesday, January 09, 2002 4:03 PM Subject: perl bindings, was Re: ft-817 > > Hi Chris! > > On Sun, Jan 06, 2002, si...@al... wrote: > > I have a quick question for you: How easy is it to make SUN RPC calls from > > Perl? I'm just learning Perl and know nothing about RPC... but I thought it > > would be fun to be able to make Perl scripts that talk to the rpcrig server > > you wrote. Any pointers? > > > > I've found perlrpcgen, but it seems pretty defunct (as asserted by author) > > .. is it h2xs I need to use? This doesn't seem to be the path I need > > (intuitively), but there's plenty of mention of SUN/ONC RPC Perl extenstions > > on the h2xs man page. > > > > Any pointers you could give would be greatly appreciated. > > Sorry, I don't know any, even though the idea looks cute. > > However, this gives me another idea: direct Hamlib perl binding. It should > be quite feasible using perl xs. For more info, see perlxs(1) and > perlxstut(1). For this purpose, hamlib++ may even be more appropriate to > map to the OO approach of perl. > Any takers? > > > Cheers, > Stephane > |