[Info-vax] Large mailboxes

Arne Vajhøj arne at vajhoej.dk
Sat Nov 28 22:47:52 EST 2020


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




More information about the Info-vax mailing list