java.lang.Object
org.newsclub.net.unix.demo.rmi.fd.StreamServer
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:
-
Method Summary
-
Method Details
-
main
StreamServer
command-line tool.- Parameters:
args
- Command-line arguments.- Throws:
IOException
- on error.AlreadyBoundException
- if there was already a server running.
-