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.


Variable Index

 o online
Is the system online?
 o port
Data port.
 o sct
 o socket
Data socket.

Constructor Index

 o MyServer()
Set up the sockets for the server.
 o MyServer(BufferedReader, PrintWriter)
Setup the client with pre-exisiting streams.

Method Index

 o connection()
Wait for a connection
 o isOnline()
Is the server online.
 o offline()
Set server offline.

Variables

 o sct
 private ServerSocket sct
 o port
 private int port
Data port.

 o socket
 private Socket socket
Data socket.

 o online
 private boolean online
Is the system online?

Constructors

 o MyServer
 public MyServer()
Set up the sockets for the server.

 o MyServer
 public MyServer(BufferedReader in,
                 PrintWriter out)
Setup the client with pre-exisiting streams.

Methods

 o connection
 public void connection()
Wait for a connection

 o offline
 public void offline()
Set server offline.

 o isOnline
 public boolean isOnline()
Is the server online.

Returns:
Online status.

All Packages  Class Hierarchy  This Package  Previous  Next  Index