>
> Hallo,
>
> is it possible to add own code to cppcms's event loop? My application
> shall listen on another socket than the http socket for plain JSON
> messages and then let them be processed by a processor method.
> Of course, I could run this server in a separate thread, but I think it
> would be better to hook it into the event loop.
>
> Thanks,
> Julian
Hi,
Sorry for late reply, I was on vacation.
You can you booster::aio and specifically booster::aio::socket for such purpose,
it is similar to Boost.Asio, but unlike most of other Booster code it has
incompatible/different API.
It is not fully documented yet, but you can see as examples of the code
many places where socket is used and ask me.
Note, it is likely that booster::aio would be changed before the stable release,
mostly booster::aio::socket would be separated to
acceptor/basic_socket/stream_socket etc.
Artyom
|