Interface ProtobufMessageHandler

    • Method Detail

      • handle_message

        void handle_message​(java.nio.ByteBuffer in_msg,
                            com.google.protobuf.GeneratedMessageV3 msg)
        This method is called by the ProtobufClient/ProtobufBroadcastPeer. The GeneratedMessage passed to it is an instance of the same type as the protobuf message you received. It is used to identify the type of the protobuf message. The actual model is contained in the ByteBuffer. You can read the tutorial to find out how to handle incoming messages correctly.
        Parameters:
        in_msg - the ByteBuffer containing the actual model
        msg - the instance of the same type as the protobuf message you received
      • connection_lost

        void connection_lost​(java.io.IOException e)
      • timeout

        void timeout()