org.klomp.snark

## Class PeerConnectionIn

- java.lang.Object
- - org.klomp.snark.PeerConnectionIn

- All Implemented Interfaces:
    Runnable

      class PeerConnectionIn
      extends Object
      implements Runnable

  Handles incoming BitTorrent protocol messages from a peer.
  This class runs in a separate thread to continuously read and parse incoming messages, delegating them to the appropriate PeerState handlers.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) long` | `lastRcvd`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PeerConnectionIn(Peer peer, DataInputStream din)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `(package private) void` | `disconnect()`
    `void` | `run()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### lastRcvd

          long lastRcvd

  - ### Constructor Detail

    - #### PeerConnectionIn

          public PeerConnectionIn(Peer peer,
                                  DataInputStream din)

  - ### Method Detail

    - #### disconnect

          void disconnect()

    - #### run

          public void run()

      Specified by:
        `run` in interface `Runnable`