Class RCS
java.lang.Object
RCS
RCS (Remote Commander Server) is a server that allows clients to execute commands on the server's machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidChecks if the "server_files" directory exists, if not, then creates it and fills it with 3 files .txt with "Hello World!" inside.static voidChecks that the "logs" folder exists, if not, then creates it.static voidcheckServerArgs(String[] arguments) Check the arguments introduced by the user.static voidMain method of the server.static voidRuns a "normal" server.static voidRuns an SSL Server.static voidStarts and configure the logger for the server.static voidStarts the server.
-
Constructor Details
-
RCS
public RCS()
-
-
Method Details
-
main
Main method of the server.- Parameters:
args- Arguments introduced by the user.
-
checkServerArgs
Check the arguments introduced by the user.- Parameters:
arguments- Arguments introduced by the user.
-
startServer
public static void startServer()Starts the server. -
runNormalServer
public static void runNormalServer()Runs a "normal" server. -
runSSLServer
public static void runSSLServer()Runs an SSL Server. -
startLogger
public static void startLogger()Starts and configure the logger for the server. -
checkLogsFolder
public static void checkLogsFolder()Checks that the "logs" folder exists, if not, then creates it. -
checkFilesDirectory
public static void checkFilesDirectory()Checks if the "server_files" directory exists, if not, then creates it and fills it with 3 files .txt with "Hello World!" inside.
-