[Hamlib-developer] Calling rigctl directly from Delphi on Windows
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Thomas S. <ny...@ny...> - 2025-02-02 15:19:10
|
I have coded my program to use hamlib via the socket interface. While I know that is the recommended way to call it from languages without bindings, I am not satisfied with that method. My issue is that if rigctld was not previously running, then one has to handle running the program or worse, finding if another version is running and then connecting to it. I also have to handle the shutdown of the program. While I coded all that, I like the program flow of directly calling functions versus having another TCP server to call (and handle errors, retries, etc). The function method just seems more direct. I realize there are downsides to the function interface calling the DLL directly. Another program cannot also talk to the rig to name one. I guess I am looking at how WSJT-X does it and perhaps it did not have the option of a TCP server to use but it does call the DLL. Given all that, I did a fair amount of reading about creating bindings for other languages so before I go further, I thought I would ask if anyone has or knows of a Delphi unit/pas file that has all the rigctl definitions in it? I suspect I can use a Perl/Python script to generate one but I wanted to check first. Maybe someone has solved the task management of rigctld on Windows in a way that will convince me to stay on that path. Regards, Tom NY4I |