All Packages Class Hierarchy This Package Previous Next Index
Class pinball.server.MyServer
java.lang.Object
|
+----pinball.server.Network
|
+----pinball.server.MyServer
- public class MyServer
- extends Network
The server part of the network.
-
online
- Is the system online?
-
port
- Data port.
-
sct
-
-
socket
- Data socket.
-
MyServer()
- Set up the sockets for the server.
-
MyServer(BufferedReader, PrintWriter)
- Setup the client with pre-exisiting streams.
-
connection()
-
Wait for a connection
-
isOnline()
- Is the server online.
-
offline()
- Set server offline.
sct
private ServerSocket sct
port
private int port
- Data port.
socket
private Socket socket
- Data socket.
online
private boolean online
- Is the system online?
MyServer
public MyServer()
- Set up the sockets for the server.
MyServer
public MyServer(BufferedReader in,
PrintWriter out)
- Setup the client with pre-exisiting streams.
connection
public void connection()
- Wait for a connection
offline
public void offline()
- Set server offline.
isOnline
public boolean isOnline()
- Is the server online.
- Returns:
- Online status.
All Packages Class Hierarchy This Package Previous Next Index