On 3. April 2014 11:54:48 MESZ, Niall Douglas
On 2 Apr 2014 at 19:20, Thomas Heller wrote:
I'm currently trying to get a asio based software to run on CNK (a very lightweight kernel) which only implements a subset of the POSIX functions. One of the functions which is not implement is pipe. However, asio uses this in the epoll and select reactor. Is there any possibility to avoid that pipe is used? What options do I have?
Yeah, I've faced that problem too before.
To be honest, the easiest path overall is to write your own pipe implementation using whatever the native OS provides. One solution I have used in the past is a socket running over loopback, it works and probably isn't that much slower than a proper pipe implementation :)
Sounds like a plan... Do you have example code lying around?
Niall
-- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.