Class Subscriber


  • public final class Subscriber
    extends Object
    The PUB-SUB pattern takes place on port 9001. Port 9002 is used in a PAIR-PAIR setting to start the publisher when the subscriber comes on-line and terminate the publisher after the subscriber has received 100 messages. The message can be coded as one string, but in this casse it is coded as two separate frames, where the first frame is the subscription topic.

    Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See Sim0MQ License.

    $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version 26 Apr 2020
    Author:
    Alexander Verbraeck
    • Method Detail

      • main

        public static void main​(String[] args)
        Parameters:
        args - the command line arguments. The first argument is the subscription key. If it is empty, 12345 will be used.