entangled
entangled copied to clipboard
URI parser
In #82, I provided a very simple URI parser to parse neighbours URI like tcp://8.8.8.8:4242
or udp://8.8.8.8:4242
It is working and sufficient for neighbours but maybe we'll run into more use cases later needing a more complex URI parser.
We can then
- find and use an existing complete URI parser
- improve this one as and when we need it
I want to solve this issue. What is the other use cases the URI parser will face in the future.
Hi @HowJMay, sorry for the late answer. A pretty obvious evolution of this URI parser is that it doesn't handle IPV6 atm. https://tools.ietf.org/html/rfc2732 Tests are missing too.
Thank you for explaining. I am going to work on it in teh recent days.