|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectequip.net.ConnectionSap
equip.net.ConnectionSapJcp
JCP class implementing ConnectionSap for JCP.
This code has been generated using C2J++
C2J++ is based on Chris Laffra's C2J (laffra@watson.ibm.com)
Read general disclaimer distributed with C2J++ before using this code
For information about C2J++, send mail to Ilya_Tilevich@ibi.com
| Nested Class Summary |
| Nested classes inherited from class equip.net.ConnectionSap |
ConnectionSap.KeepAliveThreadData |
| Field Summary | |
(package private) int |
advertisedReceiveWindow
|
(package private) java.util.Vector |
completedObjectFragments
|
(package private) float |
conjestionWindow
|
(package private) float |
connectionStrength
|
(package private) int |
connectionStrengthHistorySize
|
static boolean |
debug
|
static boolean |
debug2
|
static boolean |
debugCon
|
static boolean |
debugRate
|
static boolean |
debugRetrans
|
(package private) Timer |
delayedAckTimer
|
(package private) int |
duplicateAcks
|
(package private) boolean |
fastRetransmit
|
(package private) boolean |
firstPartialAck
|
(package private) int |
highestSeq
|
(package private) Timer |
keepAliveTimer
|
(package private) int |
maxFragmentSize
|
(package private) int |
maxReceiveWindow
|
(package private) int |
maxRetransmissionTimeout
|
(package private) int |
maxUnsentFragments
|
(package private) int |
minRetransmissionTimeout
|
(package private) java.util.Vector |
receivedFragments
|
(package private) int |
receiveLastRSeq
|
static double |
receiveLossRate
|
(package private) int |
receiveNextSeq
|
(package private) java.lang.Thread |
receiveThread
|
(package private) int |
recover
|
(package private) Timer |
retransmissionTimer
|
(package private) RoundTripTimer |
roundTripTimer
|
(package private) int |
sendLastAck
|
(package private) int |
sendLastRSeq
|
static double |
sendLossRate
|
(package private) int |
sendNextSeq
|
(package private) int |
sendWindow
|
(package private) int |
sendWindow1
|
(package private) int |
sendWindow2
|
(package private) int |
slowStartThreshold
|
(package private) java.net.DatagramSocket |
socket
|
(package private) int |
state
|
(package private) static int |
STATE_CLOSE_WAIT
|
(package private) static int |
STATE_CLOSED
|
(package private) static int |
STATE_CLOSING
|
(package private) static int |
STATE_ESTABLISHED
|
(package private) static int |
STATE_FIN_WAIT_1
|
(package private) static int |
STATE_FIN_WAIT_2
|
(package private) static int |
STATE_LAST_ACK
|
(package private) static int |
STATE_LISTEN
|
(package private) static int |
STATE_SYN_RCVD
|
(package private) static int |
STATE_SYN_SENT
|
(package private) static int |
STATE_TIME_WAIT
|
(package private) Timer |
timeoutTimer
|
int |
UNACKED
|
(package private) java.util.Vector |
unackedFragments
|
int |
UNKNOWN
|
int |
UNSENT
|
(package private) java.util.Vector |
unsentFragments
|
| Fields inherited from class equip.net.ConnectionSap |
connectedFlag, connectionTimeoutFlag, connectionTimeoutMs, DEBUG_TCP, keepAliveThread, keepAliveThreadData, keepAliveTimeMs, lastNewSendTimeMs, lastResponseTimeMs, lastSendTimeMs, localAddress, localPort, lock, nextObjectId, probingIntervalMs, recvBufSize, recvTimeoutMs, remoteAddress, remotePort, sendBufSize, slowResponseFlag, slowResponseTimeMs, status |
| Constructor Summary | |
ConnectionSapJcp(java.net.DatagramPacket packet)
ConnectionSapJcp |
|
ConnectionSapJcp(int remoteAddress,
short remotePort)
ConnectionSapJcp |
|
ConnectionSapJcp(int remoteAddress,
short remotePort,
java.net.DatagramSocket socket)
ConnectionSapJcp |
|
| Method Summary | |
protected void |
abort()
abort |
protected void |
ack()
ack |
protected void |
ackNow()
ackNow |
protected void |
addReceivedFragment(JcpFragment f)
addReceivedFragment |
protected void |
buildObject(int objectStart,
int objectEnd)
buildObject |
int |
cancelObject(int object_id)
cancelObject |
void |
close(boolean flushFlag)
close |
protected void |
closed()
closed Clean up after abort or close. |
protected void |
fin()
fin |
float |
getConnectionStrength()
getConnectionStrength |
int |
getObjectStatus(int object_id)
getObjectStatus |
int |
getProtocol()
getProtocol |
protected int |
getReceiveWindow()
getReceiveWindow |
int |
getUnsentObjects()
getUnsentObjects |
protected JcpFragment |
makeFragment(Mbuf data,
int flags)
makeFragment |
protected boolean |
output()
output |
protected void |
outputFragment(JcpFragment f)
outputFragment |
(package private) void |
printRateState(java.lang.String where)
|
void |
printState(int state)
printState |
(package private) void |
printState(java.lang.String where)
printState |
void |
printState(java.lang.String where,
boolean debug2)
|
protected void |
processFragment(JcpFragment f)
processFragment |
ValueBase |
readObject()
readObject |
protected int |
receiveFragment(JcpFragment f)
receiveFragment |
(package private) void |
receivePacket(java.net.DatagramPacket packet)
receivePacket |
protected void |
reset()
reset Send reset dependent on state, then close. |
int |
resetConnectionTimeoutFlag()
resetConnectionTimeoutFlag |
protected void |
retransmit()
retransmit |
protected void |
retransmitFragment(JcpFragment f)
sendDelayedAck protected /** retransmitFragment |
void |
run()
receiveThreadFunction |
protected boolean |
sendAllowed(JcpFragment f)
sendAllowed |
protected boolean |
seqGreaterThan(int a,
int b)
seqGreaterThan |
protected boolean |
seqGreaterThanEqual(int a,
int b)
seqGreaterThanEqual |
protected boolean |
seqLessThan(int a,
int b)
seqLessThan |
protected boolean |
seqLessThanEqual(int a,
int b)
seqLessThanEqual |
void |
setConnectionStrengthHistorySize(int size)
setConnectionStrengthHistorySize |
void |
setConnectionTimeout(int timeoutMs)
setConnectionTimeout |
void |
setDelayedAckTimeout(int timeoutMs)
setDelayedAckTimeout |
void |
setKeepAliveTime(int timeMs)
setKeepAliveTime |
void |
setMaximumFragmentSize(int size)
setMaximumFragmentSize |
void |
setMaximumRetransmissionTimeout(int timeoutMs)
setMaximumRetransmissionTimeout |
void |
setMinimumRetransmissionTimeout(int timeoutMs)
setMinimumRetransmissionTimeout |
void |
setRecvBufSize(int size)
setRecvBufSize |
void |
setSendBufSize(int size)
setSendBufSize |
void |
setTimerGrainularity(int timeoutMs)
setTimerGrainularity |
protected void |
syn()
syn |
protected void |
synack()
synack |
int |
waitUntilConnected()
waitUntilConnected |
int |
writeObject(ValueBase object,
boolean reliableFlag,
int[] object_id)
|
int |
writeObject(ValueBase object,
boolean reliableFlag,
int[] object_id,
int priority)
writeObject |
int |
writeObjectLocked(ValueBase object,
boolean reliableFlag,
int[] object_id,
int priority)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean debug
public static boolean debug2
public static boolean debugCon
public static boolean debugRetrans
public static boolean debugRate
public static double receiveLossRate
public static double sendLossRate
Timer retransmissionTimer
Timer delayedAckTimer
Timer timeoutTimer
Timer keepAliveTimer
RoundTripTimer roundTripTimer
int duplicateAcks
boolean fastRetransmit
int slowStartThreshold
float connectionStrength
static final int STATE_LISTEN
static final int STATE_CLOSED
static final int STATE_SYN_SENT
static final int STATE_SYN_RCVD
static final int STATE_ESTABLISHED
static final int STATE_FIN_WAIT_1
static final int STATE_FIN_WAIT_2
static final int STATE_CLOSE_WAIT
static final int STATE_CLOSING
static final int STATE_LAST_ACK
static final int STATE_TIME_WAIT
java.net.DatagramSocket socket
java.util.Vector unsentFragments
java.util.Vector unackedFragments
java.util.Vector receivedFragments
java.util.Vector completedObjectFragments
java.lang.Thread receiveThread
int receiveNextSeq
int receiveLastRSeq
int maxReceiveWindow
int sendLastAck
int sendNextSeq
int highestSeq
int recover
boolean firstPartialAck
int sendLastRSeq
int sendWindow
int sendWindow1
int sendWindow2
int maxUnsentFragments
float conjestionWindow
int state
int maxFragmentSize
int minRetransmissionTimeout
int maxRetransmissionTimeout
int connectionStrengthHistorySize
int advertisedReceiveWindow
public final int UNSENT
public final int UNACKED
public final int UNKNOWN
| Constructor Detail |
public ConnectionSapJcp(int remoteAddress,
short remotePort,
java.net.DatagramSocket socket)
remoteAddress - remotePort - socket -
public ConnectionSapJcp(int remoteAddress,
short remotePort)
remoteAddress - remotePort - public ConnectionSapJcp(java.net.DatagramPacket packet)
packet - | Method Detail |
public void printState(int state)
void printState(java.lang.String where)
public void printState(java.lang.String where,
boolean debug2)
void printRateState(java.lang.String where)
public int getProtocol()
getProtocol in class ConnectionSappublic int waitUntilConnected()
waitUntilConnected in class ConnectionSappublic void close(boolean flushFlag)
close in class ConnectionSapflushFlag -
public ValueBase readObject()
throws java.io.IOException
readObject in class ConnectionSapjava.io.IOExceptionpublic int getUnsentObjects()
public int cancelObject(int object_id)
cancelObject in class ConnectionSapobject_id -
public int getObjectStatus(int object_id)
object_id -
public int writeObjectLocked(ValueBase object,
boolean reliableFlag,
int[] object_id,
int priority)
writeObjectLocked in class ConnectionSap
public int writeObject(ValueBase object,
boolean reliableFlag,
int[] object_id)
public int writeObject(ValueBase object,
boolean reliableFlag,
int[] object_id,
int priority)
writeObject in class ConnectionSapobject - reliableFlag - object_id - priority -
public void setSendBufSize(int size)
setSendBufSize in class ConnectionSapsize - public void setRecvBufSize(int size)
setRecvBufSize in class ConnectionSapsize - public void setKeepAliveTime(int timeMs)
setKeepAliveTime in class ConnectionSaptimeMs - public void setConnectionTimeout(int timeoutMs)
setConnectionTimeout in class ConnectionSaptimeoutMs - public int resetConnectionTimeoutFlag()
resetConnectionTimeoutFlag in class ConnectionSappublic void setMaximumFragmentSize(int size)
size - public void setMinimumRetransmissionTimeout(int timeoutMs)
timeoutMs - public void setMaximumRetransmissionTimeout(int timeoutMs)
timeoutMs - public void setConnectionStrengthHistorySize(int size)
size - public void setDelayedAckTimeout(int timeoutMs)
timeoutMs - public void setTimerGrainularity(int timeoutMs)
timeoutMs - public float getConnectionStrength()
getConnectionStrength in class ConnectionSap
protected boolean seqLessThan(int a,
int b)
a - b -
protected boolean seqLessThanEqual(int a,
int b)
a - b -
protected boolean seqGreaterThan(int a,
int b)
a - b -
protected boolean seqGreaterThanEqual(int a,
int b)
a - b -
public void run()
run in interface java.lang.Runnablerun in class ConnectionSap
protected JcpFragment makeFragment(Mbuf data,
int flags)
data - flags -
protected boolean output()
protected void outputFragment(JcpFragment f)
f - void receivePacket(java.net.DatagramPacket packet)
packet - now package scope for ServerSapUdp dup SYN hackprotected void processFragment(JcpFragment f)
f - protected int receiveFragment(JcpFragment f)
f -
protected void syn()
protected void synack()
protected void fin()
protected void ack()
protected void ackNow()
protected boolean sendAllowed(JcpFragment f)
f -
protected void retransmit()
protected void retransmitFragment(JcpFragment f)
f - Retransmits JcpFragment as a result of fast retransmit or retransmission timeout.
Updates connection strength measurement, retransmits and cancels round trip
timer.protected void addReceivedFragment(JcpFragment f)
f -
protected void buildObject(int objectStart,
int objectEnd)
objectStart - objectEnd - protected void abort()
protected void reset()
protected void closed()
protected int getReceiveWindow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||