Class ryw.XClient
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ryw.XClient

java.lang.Object
   |
   +----ryw.XClient

public class XClient
extends Object
implements Runnable
A client object that connects, reads, and writes from a server in a thread.

Variable Index

 o dins
 o douts
 o ins
 o outs
 o pouts

Constructor Index

 o XClient()

Method Index

 o connect(String, int)
 o readFromServer()
 o reset()
 o run()
 o sendLoop()
 o sendToServer()
 o start()
 o stop()
 o tryConnect(String, int, int)
 o tryReconnect()

Variables

 o ins
  protected InputStream ins
 o outs
  protected OutputStream outs
 o dins
  protected DataInputStream dins
 o douts
  protected DataOutputStream douts
 o pouts
  protected PrintStream pouts

Constructors

 o XClient
  public XClient()

Methods

 o connect
  public synchronized void connect(String host,
                                   int port) throws IOException
 o reset
  public synchronized void reset()
 o tryConnect
  public synchronized void tryConnect(String host,
                                      int port,
                                      int retryInter)
 o tryReconnect
  public synchronized void tryReconnect()
 o start
  public synchronized void start()
 o stop
  public synchronized void stop()
 o run
  public synchronized void run()
 o sendLoop
  public synchronized void sendLoop()
 o readFromServer
  public abstract void readFromServer() throws IOException
 o sendToServer
  public abstract void sendToServer() throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index