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

Dave Froble davef at tsoft-inc.com
Wed Jan 23 14:44:53 EST 2019


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.  So, I'm just cutting out the middleman.

The documentation does a decent job, even if it uses C examples.  So, no 
problem, right?

Well, yes, two.  SSL/TLS isn't built in, if that's actually the way it 
should work, and, I found the DEC/Compaq/HP TCP/IP to be lacking in some 
ways.


-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list