Class ByteStreamManager

    • Method Detail

      • addByteStreamListener

        public final void addByteStreamListener​(Consumer<ByteStreamEvent> byteStreamListener)
        Adds a byte stream listener, which allows to listen for inbound byte stream requests.
        Parameters:
        byteStreamListener - The listener.
        See Also:
        removeByteStreamListener(Consumer)
      • initiateSession

        public abstract AsyncResult<ByteStreamSession> initiateSession​(Jid receiver,
                                                                       String sessionId)
        Initiates a byte stream session with another entity.
        Parameters:
        receiver - The peer entity.
        sessionId - The session id.
        Returns:
        The async result containing the session.