|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--inria.util.Entity | +--inria.net.lrmp.LrmpEntity | +--inria.net.lrmp.LrmpSender
An LRMP sender is an LRMP entity that sends data packets. It is created and managed internally by Lrmp.
Field Summary | |
protected int |
bytes
|
protected inria.net.lrmp.LrmpPacketCache |
cache
|
protected int |
cacheSize
|
protected int |
drops
|
protected int |
duplicates
|
protected long |
expected
|
protected int |
interval
|
protected int |
jitter
|
protected long |
lastError
|
protected long |
lastseq
|
protected long |
lastTimeForData
|
protected boolean |
lost
|
protected long |
maxseq
|
protected long |
nextRRTime
|
protected long |
nextSRTime
|
protected int |
packets
|
protected int |
rate
|
protected int |
repairs
|
protected int |
rrAbsLost
|
protected int |
rrInterval
|
protected long |
rrMaxSeqno
|
protected int |
rrProb
|
protected int |
rrReplies
|
protected long |
rrSelectTime
|
protected int |
rrTimestamp
|
protected int |
srBytes
|
protected int |
srPackets
|
protected long |
srSeqno
|
protected int |
srTimestamp
|
protected long |
startseq
|
protected int |
transit
|
Fields inherited from class inria.net.lrmp.LrmpEntity |
distance, rtt, SequenceModulo |
Fields inherited from class inria.util.Entity |
id |
Constructor Summary | |
protected |
LrmpSender(int id,
java.net.InetAddress netaddr,
long start)
|
Method Summary | |
protected void |
appendPacket(LrmpPacket pack)
appends the packet at the end of cache. |
protected void |
clearCache(long initialSeqno)
|
long |
expected()
Returns the next sequence number that will be used in transmission or reception. |
int |
getBadPacketCount()
Returns the number of bad packets received. |
int |
getByteCount()
Returns the number of bytes sent or received. |
int |
getDataRate()
Returns the current date rate. |
int |
getDuplicateCount()
Returns the number of duplicate packets received. |
int |
getJitter()
Returns the packet interarrival jitter in milliseconds. |
protected LrmpPacket |
getPacket(long seqno)
|
int |
getPacketCount()
Returns the number of packets sent or received. |
int |
getRepairCount()
Returns the number of repair packets sent or received. |
long |
getTimeSentData()
Returns the last time sent data. |
long |
highestSeqnoGot()
Returns the highest sequence number seen from the sender. |
protected void |
highestSeqnoGot(long n)
|
protected void |
incBytes(int n)
|
protected void |
incDrops()
|
protected void |
incDuplicate()
|
protected void |
incExpected()
|
protected void |
incPackets()
|
protected void |
incRepairs()
|
protected void |
initCache(int cacheSize)
|
protected boolean |
isCached(long seqno)
|
boolean |
isLost()
Returns true if the sender is lost. |
protected void |
putPacket(LrmpPacket pack)
puts the packet into cache. |
protected void |
removePacket(LrmpPacket pack)
|
protected void |
reset(long initialSeqno)
|
protected void |
setInterval(int i)
sets the actual packet interval. |
protected void |
setRate(int r)
sets the actual data rate in bytes/sec. |
protected void |
updateJitter(int timestamp)
|
Methods inherited from class inria.net.lrmp.LrmpEntity |
equals, getAddress, getLastTimeHeard, getNackCount, getRTT, incNack, reset, setAddress, setID, setLastTimeHeard, toString |
Methods inherited from class inria.util.Entity |
equals, getID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long startseq
protected long maxseq
protected long expected
protected long lastseq
protected long lastError
protected inria.net.lrmp.LrmpPacketCache cache
protected int cacheSize
protected boolean lost
protected long lastTimeForData
protected int srPackets
protected int srBytes
protected long srSeqno
protected int srTimestamp
protected long nextSRTime
protected int rrProb
protected int rrInterval
protected int rrTimestamp
protected long rrSelectTime
protected int rrReplies
protected long nextRRTime
protected int rrAbsLost
protected long rrMaxSeqno
protected int packets
protected int bytes
protected int duplicates
protected int repairs
protected int drops
protected int rate
protected int interval
protected int transit
protected int jitter
Constructor Detail |
protected LrmpSender(int id, java.net.InetAddress netaddr, long start)
Method Detail |
protected void reset(long initialSeqno)
protected void initCache(int cacheSize)
public int getPacketCount()
public int getDuplicateCount()
public int getRepairCount()
public int getBadPacketCount()
public int getByteCount()
public int getDataRate()
public long getTimeSentData()
public int getJitter()
public boolean isLost()
protected void clearCache(long initialSeqno)
public long highestSeqnoGot()
public long expected()
protected void highestSeqnoGot(long n)
protected void incPackets()
protected void incDuplicate()
protected void incRepairs()
protected void incDrops()
protected void incBytes(int n)
protected void incExpected()
protected void setRate(int r)
r
- the data rate.protected void setInterval(int i)
i
- the interval.protected void appendPacket(LrmpPacket pack)
pack
- the packet to cache.protected void putPacket(LrmpPacket pack)
pack
- packet to cache.protected void removePacket(LrmpPacket pack)
protected LrmpPacket getPacket(long seqno)
protected boolean isCached(long seqno)
protected void updateJitter(int timestamp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.