[zeromq-dev] zconfig question

Juergen Gnoss jgnoss at hotmail.com
Sun Oct 18 21:51:04 CEST 2020


The example for zconfig shows the following



context
    iothreads = 1
    verbose = 1      #   Ask for a trace
main
    type = zqueue    #  ZMQ_DEVICE type
    frontend
        option
            hwm = 1000
            swap = 25000000     #  25MB
        bind = 'inproc:@@//@@addr1'
        bind = 'ipc:@@//@@addr2'
    backend
        bind = inproc:@@//@@addr3

Question: How do I get the second value of the bind key under frontend?


I have a config file where I need to specify several geofence coordinates.
each geofence has a name and an infinite set of vertexes
each vertex has a  lat, long pair

I think to store it like so:


    geofence
        location = 1
            name = "First_Down"
            ll = -11.836177, -77.108178
            ll = -11.836864, -77.108759
            ll = -11.836974, -77.108620
            ll = -11.836271, -77.108046
        location = 2
            name = "First_Up"
            ll = -12.836177, -77.108178
            ll = -12.836864, -77.108759
            ll = -12.836974, -77.108620
            ll = -12.836271, -77.108046
            ll = -12.836864, -77.108759
            ll = -12.836974, -77.108620
            ll = -12.836271, -77.108046

              .
              .
              .
       location = n
            name = "blahblah_Down"
            ll = -13.836177, -77.108178
            ll = -13.836864, -77.108759
            ll = -13.836974, -77.108620
            ll = -13.836271, -77.108046


How do I retrieve that in order to put that in a set of struct's.
I guess using child and sibling is the way to do it, but I'm too stupid to get that right.
Anyone can give me a hint how to get what I want.


thanks
Ju

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20201018/e9d0c0a0/attachment.htm>


More information about the zeromq-dev mailing list