All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.nodeos.ProtocolLayer.PacketBuffer
Summary |
static final class ProtocolLayer.PacketBuffer extends java.lang.Object { // Fields 6 final byte[] data; int length; ProtocolLayer.PacketBuffer next; Object owner; ProtocolLayer.PacketBuffer prev; int users; // Constructors 2 PacketBuffer(Object); PacketBuffer(Object, byte[]); // Methods 9 synchronized void acquire(); ProtocolLayer.PacketBuffer addToQueue(ProtocolLayer.PacketBuffer); int getRefCount(); boolean notOnAQueue(); boolean onAQueue(); synchronized void release(); ProtocolLayer.PacketBuffer removeFromQueue(); public String toString(); void trade(ProtocolLayer.PacketBuffer); }
Object used to point to the actual data buffers for packets.
Cross Reference |
Fields |
· data | Summary | Top |
final byte[] data
· owner | Summary | Top |
Object owner
· length | Summary | Top |
int length
· users | Summary | Top |
int users
· next | Summary | Top |
ProtocolLayer.PacketBuffer next
For the free buffer queue on InChannels and OutChannels.
See Also: InChannel, OutChannel
· prev | Summary | Top |
ProtocolLayer.PacketBuffer prev
For the free buffer queue on InChannels and OutChannels.
See Also: InChannel, OutChannel
Constructors |
· PacketBuffer | Summary | Top |
PacketBuffer(Object owner)
· PacketBuffer | Summary | Top |
PacketBuffer(Object owner, byte[] data)
Methods |
· notOnAQueue | Summary | Top |
boolean notOnAQueue()
Debugging only. Returns true if this buffer is not on a queue (i.e, next == prev == null).
· onAQueue | Summary | Top |
boolean onAQueue()
Debugging only. Returns true if this buffer is on a queue.
· addToQueue | Summary | Top |
ProtocolLayer.PacketBuffer addToQueue(ProtocolLayer.PacketBuffer q)
Add this packet buffer to the "head" of given queue q. Q is doubly linked, the new head (this) is returned.
Parameter Description q pointer to the first element of the list (or null).
- Returns:
- the new head of the list (always this).
· removeFromQueue | Summary | Top |
ProtocolLayer.PacketBuffer removeFromQueue()
Remove this pb from the queue it is on. It must be on a queue.
- Returns:
- the new
head of the queue.
· trade | Summary | Top |
void trade(ProtocolLayer.PacketBuffer pb)
· acquire | Summary | Top |
synchronized void acquire()
· release | Summary | Top |
synchronized void release()
· getRefCount | Summary | Top |
int getRefCount()
· toString | Summary | Top |
public String toString()
- Overrides:
- toString in class Object
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7