[Info-vax] Large mailboxes
Dave Froble
davef at tsoft-inc.com
Sat Nov 28 23:50:45 EST 2020
On 11/28/2020 10:47 PM, Arne Vajhøj wrote:
> On 11/28/2020 10:26 PM, Arne Vajhøj wrote:
>> On 11/28/2020 8:49 PM, Dave Froble wrote:
>>> On 11/28/2020 6:45 PM, Arne Vajhøj wrote:
>>>> On 11/28/2020 3:41 PM, Dave Froble wrote:
>>>>> On 11/28/2020 1:40 PM, Stephen Hoffman wrote:
>>>>>> I'd use DTLS here for sensitive data, though the available TCP/IP,
>>>>>> UDP/IP, TLS, and DTLS APIs on OpenVMS are less than friendly.
>>>>>
>>>>> Screw the APIs. There are sockets at the bottom of any of them. Just
>>>>> forget the top heavy junk and use sockets.
>>>>
>>>> I suspect he wants a higher level API for TCP/IP communication
>>>> for the same reason you use Basic and not Macro-32. You get more
>>>> functionality implemented per hour.
>>>
>>> Totally disagree.
>>>
>>> I've seen some of the stuff needed to use higher level stuff. Lots
>>> and lots of coding to meet the requirements. They are for those who
>>> don't know how to use sockets, which is rather easy.
>>>
>>> YMMV, but, I get done much quicker if I skip all the overhead coding.
>>
>> I am not convinced.
>>
>> Let me make an example.
>>
>> Task getting the page at https://www.google.com/
>>
>> In VB.NET you do:
>>
>> Dim wc As WebClient = New WebClient
>> Dim s As String = wc.DownloadString("https://www.google.com/")
>>
>> How many lines does it take to do that using socket API??
>
> Non-HTTP require a few more lines, but still not bad - connect
> to localhost port 12345 and write text:
>
> Using tc As New TcpClient("localhost", 12345)
> Using nstm As NetworkStream = tc.GetStream()
> Using sw As New StreamWriter(nstm)
> sw.WriteLine("This is a test")
> End Using
> End Using
> End Using
>
> Arne
>
Arne, understand, what you're using has a whole bunch of coding behind
that you're not counting. Well, I've got a whole bunch of coding that I
reuse, so that's pretty much a wash. Just because I've written it
doesn't make it less useful than what someone else has written. In my
mind it's more so.
Nor were we discussing WEENDOZE and VB. Let's keep it to VMS maybe.
And one more thing. My code does things the way I think they should be
done, not what someone else thinks should happen.
--
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