[Info-vax] Help wanted : Porting code from Linux to VMS
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Fri Jan 25 12:11:50 EST 2019
In article <q2e0sf$r3o$1 at dont-email.me>, Dave Froble <davef at tsoft-inc.com> writes:
>On 1/24/2019 6:52 PM, Arne Vajhøj wrote:
>> On 1/23/2019 2:44 PM, Dave Froble wrote:
>>> On 1/23/2019 2:03 PM, Arne Vajhøj wrote:
>>>> On 1/23/2019 11:34 AM, Dave Froble wrote:
>>>>> On 1/23/2019 9:16 AM, Craig A. Berry wrote:
>>>>>> I will join the chorus of those saying to leave it in C. But if you
>>>>>> must, Neil Reick has examples of doing TCP/IP with $QIO calls in
>>>>>> BASIC,
>>>>>> which might be easier to read for someone who knows no C:
>>>>>>
>>>>>> <http://neilrieck.net/demo_vms_html/openvms_demo_index.html#ipstack>
>>>>>>
>>>>>> He's made of tougher stuff than I am -- when I had to do TCP/IP from
>>>>>> BASIC I just wrote wrapper routines in C that presented dynamic string
>>>>>> descriptors to BASIC. If only there were an RTL that already did
>>>>>> that.
>>>>>
>>>>> Actually, doing the whole thing in Basic using the QIO interface
>>>>> taught me much more than if I just used the CRTL stuff. I'm a firm
>>>>> believer in understanding what one is trying to do. The first
>>>>> programs weer strictly a learning project. An "echo server" and a
>>>>> client. After that implementing for production was rather easy.
>>>>
>>>> Just note that the C socket API is a standard and VMS $QIO(W)
>>>> is not.
>>>>
>>>> So general TCP/IP documentation and various support forums
>>>> are likely to describe things in terms of the C API.
>>>
>>> That, yes. But my info is that the CRTL stuff is is implemented using
>>> the QIO stuff.
>>
>> I believe that is correct.
>>
>>> So, I'm just cutting out the middleman.
>>>
>>> The documentation does a decent job, even if it uses C examples. So,
>>> no problem, right?
>>
>> How many example are available using $QIO(W)? Probably dozens.
>>
>> How many examples are available using socket API? Probably tens of
>> thousands.
>>
>> Arne
>
>Dozens of good examples are better than thousands of bad examples ...
>
>:-)
One good example should be more than enough.
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
I speak to machines with the voice of humanity.
More information about the Info-vax
mailing list