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.
-
in
- Output for the server.
-
out
- Input for the server.
-
Network()
-
-
getInStream()
- Send out the input stream.
-
getOutStream()
- Send out the output stream.
-
receive()
- Receive data.
-
transmit(String)
- Send out data.
in
protected BufferedReader in
- Output for the server.
out
protected PrintWriter out
- Input for the server.
Network
public Network()
getOutStream
public PrintWriter getOutStream()
- Send out the output stream.
- Returns:
- output stream.
getInStream
public BufferedReader getInStream()
- Send out the input stream.
- Returns:
- input stream.
transmit
public void transmit(String s)
- Send out data.
receive
public String receive()
- Receive data.
- Returns:
- the data received.
All Packages Class Hierarchy This Package Previous Next Index