cnbs06@vaxa.strath.ac.uk (Bruce Rodger.) (04/19/91)
We are currently trying to port Geoff Huston's ANU-NEWS server to run under UCX. We are having one major problem - how to start a new server process each time a TCP call is received on the news server port (conventionally port 119), and assign that stream to that process. Under Unix, it would be straightforward - you would just add an entry to /etc/services, specifying the program to be run when a call is received. Similarly, under CMU TCP and WIN TCP, you would modify sys$manager:internet.config or twg$tcp:[netdist.etc]servers.dat & twg$tcp:[netdist.etc]services respectively. Under multinet, you would use the $Multinet config/server command, and even under DECnet, you could use NCP. But how do you do this sort of thing under UCX ? My own feeling is that it can't be done in this way - there is no mention of anything like this in the UCX manuals. We'll probably have to take an approach similar to that used by the UCX FTP utility - a daemon (UCX$FTPD) runs as a detached process, "listening" to the appropriate port. When an incoming call is detected, a server process (UCX$FTPC) is created, and the logical stream assigned to this process. Obviously what we require is a program to performa function similar to the UCX$FTPD program. However, as we don't have the source code for UCX$FTPD available, I'm unsure how to go about writing the news_daemon. In particular, how is the new process created, and how is the stream assigned to that process ? Any information or example code would be gratefully received! Bruce. -- R.B. Rodger |JANET: R.B.Rodger@uk.ac.strath.vaxa OptoElectronics Grp|Internet:R.B.Rodger@vaxa.strath.ac.uk Elec. Eng. Dept | Strathclyde Univ | Thank you for dealing with ByteSabre Software Inc. Your Glasgow G1 1XW | bill is in the post. When it arrives, remember our motto: Scotland. | "We know where you live!"