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

Arne Vajhøj arne at vajhoej.dk
Wed Jan 23 14:03:23 EST 2019


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.

Arne





More information about the Info-vax mailing list