|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openarchitectureware.debug.communication.PacketSender
public class PacketSender
This Runnable sends packets out asynchroniously as they arrive from customers.
Method Summary | |
---|---|
void |
close()
stop the sender thread. |
static PacketSender |
newPacketSender(Connection connection)
create a new instance and starts the runnable in a new thread |
void |
run()
|
int |
sendPacket(AbstractPacket packet)
Add a packet to be sent to the other side. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PacketSender newPacketSender(Connection connection)
connection
- the Connection
that controls this data receiver.
public int sendPacket(AbstractPacket packet) throws java.io.InterruptedIOException
packet
- the packet
java.io.InterruptedIOException
public void close()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |