Interface MessageSender

    • Method Detail

      • send

        boolean send​(PeerID peerID,
                     Message message)
              throws java.io.IOException
        Sends the given Message to the destination
        Parameters:
        peerID - the destination PeerID. null is not allowed
        message - a message which is sent to the peer
        Returns:
        true if the message is sent to the destination successfully, otherwise false
        Throws:
        java.io.IOException - if I/O error occurs or given parameters are not valid