com.ibm.manplato.Protocol
Class PADP
java.lang.Object
|
+--java.lang.Thread
|
+--com.ibm.manplato.Protocol.PADP
- All Implemented Interfaces:
- PacketTimerInterface, java.lang.Runnable
- public class PADP
- extends java.lang.Thread
- implements PacketTimerInterface
- Version:
- $Rev$-$Date: 2001/05/31 19:56:31 $$State: Exp $
- Author:
- File Created By: Brad BARCLAY <bbarclay@ca.ibm.com>, Last Modified By: $Author: Yaztromo $
Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
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 |
ACK_TIMEOUT
public static long ACK_TIMEOUT
IP_TIMEOUT
public static long IP_TIMEOUT
PADP
public PADP(SLP slp)
static void ()
connect
public void connect()
disconnect
public void disconnect()
enableDebugMode
public void enableDebugMode()
handleAbort
protected void handleAbort(PADP_Packet padp_packet)
handleACK
protected void handleACK(PADP_Packet padp_packet)
handleData
protected void handleData(PADP_Packet padp_packet)
handleNACK
protected void handleNACK(PADP_Packet padp_packet)
handleTickle
protected void handleTickle(PADP_Packet padp_packet)
incReadyQueueEnd
protected int incReadyQueueEnd()
throws PADP_QueueOverrunException
incReadyQueueStart
protected int incReadyQueueStart()
throws PADP_QueueOverrunException
incTransID
protected byte incTransID()
isConnected
public boolean isConnected()
parsePADPacket
protected PADP_Packet parsePADPacket(GenericPacket genericpacket)
processPacket
protected void processPacket(PADP_Packet padp_packet)
readPacket
public GenericPacket readPacket()
throws NotConnectedException
run
public void run()
- Overrides:
run
in class java.lang.Thread
selfDisconnect
protected void selfDisconnect()
sendAck
protected void sendAck(PADP_Packet padp_packet)
sendPacket
protected void sendPacket(PADP_Packet padp_packet)
sendTickle
protected void sendTickle()
setDebugOutputStream
public void setDebugOutputStream(java.io.PrintStream printstream)
startTickles
public void startTickles()
stopTickles
public void stopTickles()
suspendPADP
public void suspendPADP()
timerExpired
public void timerExpired(PacketTimer packettimer)
- Description copied from interface:
PacketTimerInterface
- This method is called by the PacketTimer when its activated
timer times out. Note that slasses can use multiple packet timers
at once, and can identify them by the packettimer parameter.
- Specified by:
timerExpired
in interface PacketTimerInterface
- Following copied from interface:
com.ibm.manplato.Protocol.PacketTimerInterface
- Parameters:
packettimer
- the PacketTimer which timed out.
transmitPacket
public void transmitPacket(GenericPacket pkt)
throws NotConnectedException,
PADP_PacketTooBigException
- Insert the method's description here.
Creation date: (08/04/00 10:06:48 PM)
- Parameters:
pkt
- com.ibm.manplato.Protocol.GenericPacket
transmitPacket
public void transmitPacket(byte[] data,
byte hostSocket,
byte serverSocket)
throws NotConnectedException,
PADP_PacketTooBigException
transmitPacket
protected void transmitPacket(byte[] data,
byte hostSocket,
byte serverSocket,
boolean flag)
throws NotConnectedException,
PADP_PacketTooBigException