private int readGossipVersion(final DataInputStream input) throws IOException {
    int gossipVersion = 0;
    for (int i = 0; i < 3; i++) {
      gossipVersion = (gossipVersion << 8) + (0xff & input.readUnsignedByte());
    }
    return gossipVersion;
  }
Reads the next 3 bytes of the gossip version where first byte was 0.
geode-tcp-server/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpServer.java