TomP2P is a distributed hash sorted table (DHST). A DHST is an extended DHT, which stores values for a location key in a sorted table. Each peer has such a sorted table, and its values are accessed with a content key. A DHST can store multiple values for a location key. The underlying communication framework uses Java NIO because a P2P library needs to handle many connections in parallel if used in a large-scale environment.