All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.server.MyClient

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

public class MyClient
extends Network
Client for sending data over the network.


Constructor Index

 o MyClient()
Setup the socket.
 o MyClient(BufferedReader, PrintWriter)
Setup the client with pre-exisiting streams.
 o MyClient(String, int)
Setup the socket.

Method Index

 o dataSocket()
Get the data socket.
 o establish()
Establish a connection.
 o port()

Constructors

 o MyClient
 public MyClient()
Setup the socket.

 o MyClient
 public MyClient(String host,
                 int port)
Setup the socket.

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

Methods

 o establish
 public void establish()
Establish a connection.

 o port
 public int port()
 o dataSocket
 public Socket dataSocket()
Get the data socket.

Returns:
the data socket.

All Packages  Class Hierarchy  This Package  Previous  Next  Index