3

I'm looking for a C++, async io library that should be compatible with both unix and windows systems.

What are some good libraries? Is this asking too much for a library that does both systems? What are peoples' experiences with this matter?

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
jbu
  • 15,831
  • 29
  • 82
  • 105

2 Answers2

4

Use boost::asio with boost::iostreams instead of asio streams. ASIO provides asynchronousness, while IOStreams provide powerful portable IO options.

Kornel Kisielewicz
  • 55,802
  • 15
  • 111
  • 149
3

Try to take a look at boost::asio. I've never personally used it but I heard good things about it.

Andreas Bonini
  • 44,018
  • 30
  • 122
  • 156
  • The OP is looking for *file* I/O, whereas Boost.Asio is primarily network oriented. – Charles Salvia Dec 18 '09 at 02:35
  • It's possible to attach normal files to these. But I'm not sure it's very portable once you get into that and he is wanting portability – hookenz Dec 18 '09 at 02:39
  • It also has file support. http://stackoverflow.com/questions/378515/whats-the-deal-with-boost-asio-and-file-i-o . It however appears that it's windows-only, I didn't know that (boost usually is very portable) – Andreas Bonini Dec 18 '09 at 02:40
  • yes, i've looked at boost, it seems to separate the unix and windows code...so it *seems* like I shouldn't use boost. – jbu Dec 18 '09 at 05:17