synapsi.net
Class ClientThread


java.lang.Object

  |

  +--java.lang.Thread

        |

        +--synapsi.net.ClientThread


public class ClientThread
extends java.lang.Thread

Implements a thread to listen for client activation notices.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientThread(MainForNet main)
          Contructs ClientThread.
ClientThread(MainForNet main, java.lang.String sRoammate)
          Contructs ClientThread
 
Method Summary
 void run()
          Mainloop for reading packets from roammate
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientThread


public ClientThread(MainForNet main,
                    java.lang.String sRoammate)
Contructs ClientThread
Parameters:
main - class that implements MainForNet
sRoammate - IP for connecting to roammate

ClientThread


public ClientThread(MainForNet main)
Contructs ClientThread. Makes connection to roammate using ip 127.0.0.1
Parameters:
main - class that implements MainForNet
Method Detail

run


public void run()
Mainloop for reading packets from roammate
Overrides:
run in class java.lang.Thread