Newsgroups: comp.archives Path: utzoo!utgpu!news-server.csri.toronto.edu!ox.com!msen.com!emv From: mjr@hussar.dco.dec.com (Marcus J. Ranum) Subject: [mud] Re: Does anyone know where the BSD UnterMUD code went? Message-ID: <1991May7.214613.291@ox.com> Followup-To: rec.games.mud Keywords: green fuzzy bananas Sender: emv@msen.com (Edward Vielmetti, MSEN) Reply-To: mjr@hussar.dco.dec.com (Marcus J. Ranum) Organization: Digital Equipment Corp., Washington Ultrix Resource Center References: <1991Apr29.084056.15983@usenet.ins.cwru.edu> <1991Apr29.205850.23516@eng.umd.edu> <1991Apr29.212029.28396@decuac.dec.com> Date: Tue, 7 May 1991 21:46:13 GMT Approved: emv@msen.com (Edward Vielmetti, MSEN) X-Original-Newsgroups: rec.games.mud Archive-name: games/mud/untermud/1991-04-29 Archive: decuac.dec.com:/pub/umud.tar.Z [192.5.214.1] Original-posting-by: mjr@hussar.dco.dec.com (Marcus J. Ranum) Original-subject: Re: Does anyone know where the BSD UnterMUD code went? Reposted-by: emv@msen.com (Edward Vielmetti, MSEN) There's a newer copy of the UnterSource on decuac, for FTP. I'm not going to argue about the relative merits of various server I/O libraries, but the Unter library (briefly) supports: * incoming packet combination into lines * stripping data into lines as it comes in [the network layer handles the grot of making it look like the server is getting a line at a time input] * VMS multinet plug-compatible version * WHO lists, and hooks into logged-in-user matching * idle time * fairly efficient [the network is the bottleneck, as Sun would say] It's in the UnterSource distribution, in umud/net_bsd.c and umud/net_vms.c The calling interface resembles roughly: io_init(); while(io_loop()) io_sync(); where io_loop() has some function that is expecting to be handed input a line at a time. Output is handled with a varargs-based "say" command, which just takes a list of strings to send: say(who,"this is ","a test",some_string_pointer,"\n",0); mjr. -- comp.archives file verification decuac.dec.com -rw-r--r-- 1 388 system 154363 May 4 21:34 /pub/umud.tar.Z found untermud ok decuac.dec.com:/pub/umud.tar.Z