Class StreamServer

java.lang.Object
org.newsclub.net.unix.demo.rmi.fd.StreamServer

public final class StreamServer extends Object
Demonstrates how to read/write files via FileDescriptors that are exchanged via RMI. This allows reading/writing from and to files that are otherwise not even accessible by the user. For example, starting the StreamServer as root and the StreamClient as a non-privileged user will allow the non-privileged user to read files only accessible to root. NOTE: For obvious security reasons, running this server without modification is not advised for anything other than demo purposes.
Author:
Christian Kohlschütter
See Also: