Class MobNetThread

java.lang.Object
  extended byjava.lang.ThreadGroup
      extended byMobNetThread

public class MobNetThread
extends java.lang.ThreadGroup

Author:
Avi TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
MobNetThread(java.lang.String name)
           
 
Method Summary
 java.lang.String getIP()
           
 Socket getSocket(int port)
           
 int inBufferSize()
           
 boolean inready()
           
 java.lang.Object receive()
           
 void send(java.lang.Object s, java.lang.String IPDest)
           
 void send(Packet p)
           
 void setServerSocket(ServerSocket s)
           
 void setSocket(Socket sock, int port)
           
 
Methods inherited from class java.lang.ThreadGroup
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobNetThread

public MobNetThread(java.lang.String name)
Method Detail

send

public void send(java.lang.Object s,
                 java.lang.String IPDest)

send

public void send(Packet p)

setSocket

public void setSocket(Socket sock,
                      int port)

setServerSocket

public void setServerSocket(ServerSocket s)

getSocket

public Socket getSocket(int port)

inready

public boolean inready()

receive

public java.lang.Object receive()

getIP

public java.lang.String getIP()

inBufferSize

public int inBufferSize()