Package org.zeromq

Interface ZProxy.Pump

    • Method Detail

      • flow

        boolean flow​(ZProxy.Plug src,
                     ZMQ.Socket source,
                     ZMQ.Socket capture,
                     ZProxy.Plug dst,
                     ZMQ.Socket destination)
        Transfers a message from one source to one destination, with an optional capture.
        Parameters:
        src - the plug of the source socket
        source - the socket where to receive the message from.
        capture - the optional sockets where to send the message to. Possibly null.
        dst - the plug of the destination socket
        destination - the socket where to send the message to.
        Returns:
        false in case of error or interruption, true if successfully transferred the message