New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ini config file #4

Closed
gabri94 opened this Issue May 26, 2016 · 4 comments

Comments

Projects
None yet
1 participant
@gabri94
Copy link
Member

gabri94 commented May 26, 2016

A config file reader must be set to load the following parameters:

rp_host (hostname)
rp_port = (int)
rp_type = (olsr/oonf)
node_id = (string of main ip / originator)

@gabri94

This comment has been minimized.

Copy link
Member

gabri94 commented May 26, 2016

heuristic = (bool)
weighted_graph =(bool)

@gabri94 gabri94 added the enhancement label May 26, 2016

@gabri94

This comment has been minimized.

Copy link
Member

gabri94 commented Jun 1, 2016

Implemented in: a7e89fa

@gabri94 gabri94 closed this Jun 1, 2016

@gabri94

This comment has been minimized.

Copy link
Member

gabri94 commented Jun 9, 2016

Use INI format with this library: https://github.com/benhoyt/inih

@gabri94 gabri94 reopened this Jun 9, 2016

@gabri94 gabri94 changed the title Create reader for config file. Implement ini config file Jun 9, 2016

@gabri94

This comment has been minimized.

Copy link
Member

gabri94 commented Jun 24, 2016

implemented ini reader in 2f0ef0e

example:

[proto]
protocol = olsr
host  = home.unname.eu
port = 9090
self_id  = 172.19.186.1
refresh = 10

[graph-parser]
heuristic  = 1
weights  = 1

@gabri94 gabri94 closed this Jun 24, 2016

@gabri94 gabri94 added this to the 0.1 milestone Jun 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment