Xref: utzoo comp.os.vms:38199 comp.protocols.tcp-ip:15751 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!strath-cs!str-va!cnbs06 From: cnbs06@vaxa.strath.ac.uk (Bruce Rodger.) Newsgroups: comp.os.vms,comp.protocols.tcp-ip,vmsnet.networks.tcp-ip.misc Subject: UCX server implementation problem Message-ID: <1991Apr19.104106.11439@vaxa.strath.ac.uk> Date: 19 Apr 91 10:41:06 GMT Organization: the R473 Lunatic Asylum Lines: 40 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!"