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.
-
goingOnline
- Going to go online.
-
MyServer()
- Set up the sockets for the server.
-
MyServer(BufferedReader, PrintWriter)
- Setup the client with pre-exisiting streams.
-
MyServer(int)
- Set up the sockets for the server.
-
MyServer(int, int)
- Set up the sockets for the server.
-
MyServer(int, int, boolean)
- Set up the sockets for the server.
-
connection()
-
Wait for a connection
-
dataSocket()
- Get the data socket.
-
getPort()
- Get the port for the server.
-
goingOnline()
- Get the going online status.
-
goingOnline(boolean)
- Set the going online status.
-
isOnline()
- Is the server online.
-
offline()
- Set server offline.
-
serverSocket()
- Get the server socket.
-
time()
- Send the time.
goingOnline
protected boolean goingOnline
- Going to go online.
MyServer
public MyServer()
- Set up the sockets for the server.
MyServer
public MyServer(int port)
- Set up the sockets for the server.
- Parameters:
- port - the port to connect on.
MyServer
public MyServer(int port,
int timeout)
- Set up the sockets for the server.
- Parameters:
- port - the port to connect on.
- timeout - the timeout for the port.
MyServer
public MyServer(int port,
int timeout,
boolean connect)
- Set up the sockets for the server.
- Parameters:
- port - the port to connect on.
- timeout - the timeout for the port.
- connect - should the server wait for a connection now.
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.
goingOnline
public boolean goingOnline()
- Get the going online status.
- Returns:
- going online status.
goingOnline
public void goingOnline(boolean online)
- Set the going online status.
- Parameters:
- online - set the online status.
serverSocket
public ServerSocket serverSocket()
- Get the server socket.
- Returns:
- the server socket.
dataSocket
public Socket dataSocket()
- Get the data socket.
- Returns:
- the data socket.
getPort
public int getPort()
- Get the port for the server.
- Returns:
- the port of the server.
time
public void time()
- Send the time.
All Packages Class Hierarchy This Package Previous Next Index