Class ServerBackend
java.lang.Object
org.cis1200.ServerBackend
- All Implemented Interfaces:
Runnable
The
ServerBackend
handles networking and communication with clients,
and is responsible for managing the server state and executing tasks. To
run the server, you should see the ServerMain
class.
You do not need to modify this file.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ServerBackend
Create the backend- Parameters:
model
- the state of the server
-
-
Method Details
-
isRunning
public boolean isRunning()- Returns:
- whether the server is processing messages
-
run
-
stop
public void stop()Ends the execution of the server
-