Re: aio co-op with socket kqueue on Netbsd

2014-09-03 Thread Justin Cormack
On Wed, Sep 3, 2014 at 3:38 PM, LeiMing lmfor...@gmail.com wrote: Using signals is not going to perform very well, I would not do that... For the lack of implementation of realtime signals, maybe settimer api can be used to handle client's timeout. It's not realtime signals so kqueue can

aio co-op with socket kqueue on Netbsd

2014-09-02 Thread LeiMing
Hello, I'm just a Windows programmer and now learning *nix APIs. I want to know how people use aio and socket kqueue together. Recently I'm learning I/O APIs and noticed that aio_* functions seeem to be the only way to perform asynchronism I/O on disk files. The interface is just like overlapped