[zeromq-dev] zconfig question
Juergen Gnoss
jgnoss at hotmail.com
Mon Oct 19 02:42:14 CEST 2020
I've got it finally baked, wasn't that intuitive as I expected, but makes sense.
Thanks Kevin,
Ju
________________________________
From: zeromq-dev <zeromq-dev-bounces at lists.zeromq.org> on behalf of Kevin Sapper <kevinsapper88 at gmail.com>
Sent: Sunday, October 18, 2020 4:10 PM
To: ZeroMQ development list <zeromq-dev at lists.zeromq.org>
Subject: Re: [zeromq-dev] zconfig question
Hi Jürgen,
use zconfig_child and zconfig_next to navigate the config tree. Using zconfig_locate("/geofence/location") you can jump to your first location.
//Kevin
Juergen Gnoss <jgnoss at hotmail.com<mailto:jgnoss at hotmail.com>> schrieb am So., 18. Okt. 2020, 21:52:
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
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org<mailto:zeromq-dev at lists.zeromq.org>
https://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20201019/70ee91cb/attachment.htm>
More information about the zeromq-dev
mailing list