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.
   
  -   dins dins
-  
  
-   douts douts
-  
  
-   ins ins
-  
  
-   outs outs
-  
  
-   pouts pouts
-  
   
  -   XClient() XClient()
-  
   
  -   connect(String, int) connect(String, int)
-  
  
-   readFromServer() readFromServer()
-  
  
-   reset() reset()
-  
  
-   run() run()
-  
  
-   sendLoop() sendLoop()
-  
  
-   sendToServer() sendToServer()
-  
  
-   start() start()
-  
  
-   stop() stop()
-  
  
-   tryConnect(String, int, int) tryConnect(String, int, int)
-  
  
-   tryReconnect() tryReconnect()
-  
   
 ins
ins
  protected InputStream ins
 outs
outs
  protected OutputStream outs
 dins
dins
  protected DataInputStream dins
 douts
douts
  protected DataOutputStream douts
 pouts
pouts
  protected PrintStream pouts
   
 XClient
XClient
  public XClient()
   
 connect
connect
  public synchronized void connect(String host,
                                   int port) throws IOException
 reset
reset
  public synchronized void reset()
 tryConnect
tryConnect
  public synchronized void tryConnect(String host,
                                      int port,
                                      int retryInter)
 tryReconnect
tryReconnect
  public synchronized void tryReconnect()
 start
start
  public synchronized void start()
 stop
stop
  public synchronized void stop()
 run
run
  public synchronized void run()
 sendLoop
sendLoop
  public synchronized void sendLoop()
 readFromServer
readFromServer
  public abstract void readFromServer() throws IOException
 sendToServer
sendToServer
  public abstract void sendToServer() throws IOException
All Packages  Class Hierarchy  This Package  Previous  Next  Index