PDP-10 / supdup

Community maintained SUPDUP client for Unix
Other
16 stars 8 forks source link

Don't clobber the hostname passed to Chaosnet NCP #32

Closed larsbrinkhoff closed 12 months ago

larsbrinkhoff commented 12 months ago

As discussed in #31. The seemingly small change — avoid appending ".Chaosnet.NET" to an unqualified Chaosnet hostname — had far reaching repercussions. Due to how the code was previously structured, a small local change was not possible.

All the network-specific code has now been pulled out into two files tcp.c and chaos.c, which know how to take a hostname and port/contact and make a connection. The Chaosnet host name resolution has been thrown out completely, leaving that to the NCP.

Three different use cases have been tested:

larsbrinkhoff commented 12 months ago

Fair enough, I'll look into add some switch(es).