All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.server.Network

java.lang.Object
   |
   +----pinball.server.Network

public class Network
extends Object
This is the network read & write controls. MyServer and MyClient extend this.


Variable Index

 o in
Output for the server.
 o out
Input for the server.

Constructor Index

 o Network()

Method Index

 o getInStream()
Send out the input stream.
 o getOutStream()
Send out the output stream.
 o receive()
Receive data.
 o transmit(String)
Send out data.

Variables

 o in
 protected BufferedReader in
Output for the server.

 o out
 protected PrintWriter out
Input for the server.

Constructors

 o Network
 public Network()

Methods

 o getOutStream
 public PrintWriter getOutStream()
Send out the output stream.

Returns:
output stream.
 o getInStream
 public BufferedReader getInStream()
Send out the input stream.

Returns:
input stream.
 o transmit
 public void transmit(String s)
Send out data.

 o receive
 public String receive()
Receive data.

Returns:
the data received.

All Packages  Class Hierarchy  This Package  Previous  Next  Index