On Wed, 1 Apr 2020 at 16:11, Stanislav Zaikin via Boost-users <boost-users@lists.boost.org> wrote:
Hello!

I have a custom network stack (it processed packets in userspace) which exposed some functions in C. It has its own listen, bind, accept functions and many other, and furthermore even custom epoll, select and poll.

I want to expand asio in some away, just to support my application with this custom network stack. But I'm a bit confused how I can do it.

Boost.Beast implements some custom stream types. That is, objects that model AsyncReadStream and AsyncWriteStream.

This would be a good place to start looking for examples.

There is also a primer on writing asio operations in the beast documentation.



Should I write my own basic io class? Or should I write custom socket service class like (reactive_socket_service_base)? And is it possible to use basic tcp classes (with any of them)?

If there are any examples in open source please let me know.

--
Best regards
Stanislav Zaikin
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users
--
Richard Hodges
hodges.r@gmail.com
office: +442032898513
home: +376841522
mobile: +376380212