More information: http://www.cs.berkeley.edu/~mdw/proj/seda/

seda.sandStorm.lib.Gnutella
Class GnutellaPacketReader

java.lang.Object
  |
  +--seda.sandStorm.lib.Gnutella.GnutellaPacketReader
All Implemented Interfaces:
GnutellaConst

class GnutellaPacketReader
extends java.lang.Object
implements GnutellaConst

This is an internal class, responsible for generating GnutellaPacket objects from raw socket data. It encapsulates the core packet-processing code in the Gnutella protocol.

Author:
Matt Welsh

Fields inherited from interface seda.sandStorm.lib.Gnutella.GnutellaConst
DEFAULT_DOWNLOAD_PORT, DEFAULT_GNUTELLA_PORT, DEFAULT_HOPS, DEFAULT_PING_INTERVAL, DEFAULT_SPEED, DEFAULT_TTL, GNUTELLA_CONNECT, GNUTELLA_FN_PING, GNUTELLA_FN_PONG, GNUTELLA_FN_PUSH, GNUTELLA_FN_QUERY, GNUTELLA_FN_QUERYHITS, GNUTELLA_OK, MAX_PAYLOAD_SIZE, PACKET_HEADER_SIZE, WRITE_CLOG_THRESHOLD
 
Constructor Summary
(package private) GnutellaPacketReader()
           
 
Method Summary
(package private)  void createPacket()
           
(package private)  GnutellaPacket getGnutellaPacket()
           
(package private)  void pushPacket(ATcpInPacket pkt)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GnutellaPacketReader

GnutellaPacketReader()
Method Detail

pushPacket

void pushPacket(ATcpInPacket pkt)
          throws java.io.IOException

getGnutellaPacket

GnutellaPacket getGnutellaPacket()
                           throws java.io.IOException

createPacket

void createPacket()
            throws java.io.IOException

More information: http://www.cs.berkeley.edu/~mdw/proj/seda/