static void checkHandshakeVersion(@NotNull final DataInput dis) throws IOException {
    final byte version = dis.readByte();
    if (version != HANDSHAKE_VERSION) {
      throw new IllegalStateException(
          format(
              "Detected wrong version of Geode product during handshake. Expected %s but found %s",
              HANDSHAKE_VERSION, version));
    }
  }
Returns true if handshake was read successfully, false otherwise.
geode-core/src/main/java/org/apache/geode/internal/tcp/Connection.java