mjr@hussar.dco.dec.com (Marcus J. Ranum) (05/08/91)
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