Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!umich!ox.com!msen.com!emv From: mjr@hussar.dco.dec.com (Marcus J. Ranum) Newsgroups: comp.archives Subject: [mud] Re: sockets core Message-ID: <1991Mar27.233914.20040@ox.com> Date: 27 Mar 91 23:39:14 GMT References: <1991Mar27.135050.23313@ux1.cso.uiuc.edu> <1991Mar27.174025.29952@decuac.dec.com> Sender: emv@msen.com (Edward Vielmetti, MSEN) Reply-To: mjr@hussar.dco.dec.com (Marcus J. Ranum) Followup-To: rec.games.mud Organization: Digital Equipment Corp., Washington Ultrix Resource Center Lines: 22 Approved: emv@msen.com (Edward Vielmetti, MSEN) X-Original-Newsgroups: rec.games.mud Archive-name: games/mud/untermud/1991-03-27 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: sockets core Reposted-by: emv@msen.com (Edward Vielmetti, MSEN) scheidel@ux1.cso.uiuc.edu (Wanderer) writes: >Recently someone posted that they had put together (or stripped down from other >source) the 'core' of the socket routines... is this around somewhere or did I >just imagine that posting? I'd suggest looking at the UnterMUD network layer - it shares no data structures with anything outside itself - you just write a call to initialize it, then a loop that calls it repeatedly. It hands input off a line-at-a-time to some routine (whatever you like). You'd need to modify a few things, but it's pretty complete, and there's even a plug-compatible VMS/multinet network layer, if you want your MUD to be VMSable, too. The whole source is FTPable out of decuac.dec.com, in ftp/pub, and the routines are named net_bsd.c and net_vms.c mjr.