[Info-vax] Help wanted : Porting code from Linux to VMS

Arne Vajhøj arne at vajhoej.dk
Thu Jan 24 18:52:29 EST 2019


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



More information about the Info-vax mailing list