How do I write DECnet programs?
That’s rather a big question! DECnet is implemented in terms of the Berkeley sockets API used for TCP/IP so the same techniques for socket/bind/connect etc apply to DECnet too. There are additional setsockopt calls you may need to call to enable different DECnet features such as authentication. The other way is to look at some example source code – of which there is ample available in the dnprogs-*.tar.gz source package. If you want to write a server then I recommend you use the libdnet_daemon library because that simplifies all the messy details of starting a daemon from dnetd and dealing with user authentication and forking. You simply register the daemon and wait to be called. All the daemons provided in the dnprogs package use this library so there are plenty of examples to choose from. If you want to write a client there are two options. If all you want to do is access files on a VMS system then you should use librms. This library provides applications with high-level read and wri