| java.lang.Object seda.sandStorm.lib.Gnutella.GnutellaPacket
All known Subclasses: seda.sandStorm.lib.Gnutella.GnutellaQueryPacket, seda.sandStorm.lib.Gnutella.GnutellaPongPacket, seda.sandStorm.lib.Gnutella.GnutellaPingPacket, seda.sandStorm.lib.Gnutella.GnutellaPushPacket, seda.sandStorm.lib.Gnutella.GnutellaQueryHitsPacket,
NUM_ALLOC | public static int NUM_ALLOC(Code) | | |
function | protected int function(Code) | | |
payload | protected byte payload(Code) | | |
payload_length | protected int payload_length(Code) | | |
GnutellaPacket | protected GnutellaPacket(GnutellaGUID guid, int function, int ttl, int hops, byte payload)(Code) | | |
GnutellaPacket | protected GnutellaPacket(int function, byte payload)(Code) | | |
GnutellaPacket | protected GnutellaPacket(GnutellaGUID guid, int function, byte payload)(Code) | | |
finalize | public void finalize()(Code) | | |
getBuffer | BufferElement getBuffer()(Code) | | Render the packet as a BufferElement which can be pushed to an
aSocket connection.
|
getConnection | public GnutellaConnection getConnection()(Code) | | Return the GnutellaConnection from which this packet arrived.
In order to send a reply to this packet, you can call
'packet.send(origPacket.getConnection()'.
|
getSize | public int getSize()(Code) | | |
prepareForSend | protected void prepareForSend()(Code) | | Implemented by subclasses to prepare for sending
|
readLEInt | protected static int readLEInt(byte barr, int offset)(Code) | | |
readLEShort | protected static int readLEShort(byte barr, int offset)(Code) | | |
writeLEInt | protected static void writeLEInt(int i, byte barr, int offset)(Code) | | |
writeLEShort | protected static void writeLEShort(int i, byte barr, int offset)(Code) | | |
|
|