rootd is described at URL: http://root.cern.ch/root/NetFile.html
You can import the source file for rootd via URL
ftp://root.cern.ch/root/rootd.tar.gz
rootd itself does not know anything about the Root files.
It is a simple program (1000 lines) that controls user access,
open/close files and read/write a stream of bytes from/to a
byte address in the file.
I would suggest you look into the well documented source file
to see what the current protocol is doing. Extending the protocol
should be pretty easy.
In the case of Root itself, the class TNetFile exploit the root
protocol.
TNetFile is derived from TFile and redefines only the functions
writing/reading a stream of bytes at a very low level.
Rene Brun