This is still too much of a serious mess to put into dosemu.
have a look at some of the clients in ./client/ to find out how they work
or just compile them and see what they do.(typing make in ./client should
be enough).

To put this into dosemu:
- apply patch emu.c.diff
- unpack this archive in the dosemu directory,
  so it is dosemu0.53plxx/daemon
- recompile dosemu

Testing it:
setup a dosemu.conf file, so it is just a terminal based dosemu
i.e. no directvideo, console, vga, whatever.
This is because the daemon code blocks dosemu on a socket (using select),
and this disables all those interrupt driven stuff (like keyboard, switching)

It might be a good idea to lredir over any direct access partitions,
and remove any redirections to important areas, as I don't really trust my 
dos programming. (Before I started this in december 1994, I had never had
to worry about segments, registers, offsets, or those weird dos functions...
I had always been used to the nice, warm, cosy unix environment)


