[network] a network names service library proposal

With ASIO to be included in Boost we are well provided with a good, performing, network implementation. So I decided do specialize my experiments on network library design, and got this new thing. I call it Network Types and Names Service library. Doxygen documentation is here: http://mndfck.org/~pedro.lamarao/projects/network/ More descriptive text here: http://mndfck.org/~pedro.lamarao/projects/network/modules.html I confess I'm not up to date with the current ASIO design; now that I published this thing, I'll go check on it. -- Pedro Lamarão

Pedro Lamarão wrote:
With ASIO to be included in Boost we are well provided with a good, performing, network implementation.
So I decided do specialize my experiments on network library design, and got this new thing. I call it Network Types and Names Service library.
Doxygen documentation is here: http://mndfck.org/~pedro.lamarao/projects/network/
More descriptive text here: http://mndfck.org/~pedro.lamarao/projects/network/modules.html
I confess I'm not up to date with the current ASIO design; now that I published this thing, I'll go check on it.
Is there a page with motivations, tutorial, example usages? I mean, I think I sorta get what you are after here, but it's a bit hard to see just looking at the implementation... Jeff

Jeff Garland escreveu:
More descriptive text here: http://mndfck.org/~pedro.lamarao/projects/network/modules.html
I confess I'm not up to date with the current ASIO design; now that I published this thing, I'll go check on it.
Is there a page with motivations, tutorial, example usages? I mean, I think I sorta get what you are after here, but it's a bit hard to see just looking at the implementation...
My mistake, the "more descriptive text" should've been: http://mndfck.org/~pedro.lamarao/projects/network/pages.html Does that help? I'm reformatting old example code, I'll try to populate those pages with simpler, more to the point, example usage today. -- Pedro Lamarão

Pedro Lamarão escreveu:
I'm reformatting old example code, I'll try to populate those pages with simpler, more to the point, example usage today.
Well, I did add _one_ new example usage to the docs, which I had to save from the old stuff by changing the implementation. The documentation is still here: http://mndfck.org/~pedro.lamarao/projects/network/ More descriptive stuff here: http://mndfck.org/~pedro.lamarao/projects/network/pages.html What do the asio people think about this approach? I could work a patch out to put this stuff in and see what happens. -- Pedro Lamarão

Hi Pedro, Pedro Lamarão <pedro.lamarao@mndfck.org> wrote:
I'm reformatting old example code, I'll try to populate those pages with simpler, more to the point, example usage today.
Well, I did add _one_ new example usage to the docs, which I had to save from the old stuff by changing the implementation.
The documentation is still here: http://mndfck.org/~pedro.lamarao/projects/network/
More descriptive stuff here: http://mndfck.org/~pedro.lamarao/projects/network/pages.html
What do the asio people think about this approach? I could work a patch out to put this stuff in and see what happens.
The post-review asio code has something quite similar which is also called a 'resolver'. It was added to provide protocol independence between IPv4 and IPv6, and is likewise based on getaddrinfo() and getnameinfo(). For example: tcp::resolver r(io_service); tcp::resolver::query q("boost.org", "http"); tcp::resolver::iterator i = r.resolve(q); tcp::resolver::iterator end; while (i != end) { tcp::endpoint e = *i; ... ++i; } There's also a resolver::async_resolve() function. Cheers, Chris

Pedro Lamarão escreveu:
I'm reformatting old example code, I'll try to populate those pages with simpler, more to the point, example usage today.
Also, implementation is here: http://mndfck.org/svn/mndfck/ -- Pedro Lamarão
participants (3)
-
Christopher Kohlhoff
-
Jeff Garland
-
Pedro Lamarão