1

I'm looking for classes like "File, Socket, String" wrapping the C (or C++) standard library functions and throwing exceptions in case of errors.

13
  • There aren't any C standard library functions for socket programming. and files and strings are covered by the C++ Standard Library. Commented Jun 9, 2011 at 15:37
  • 1
    @Neil is right that they aren't part of the C standard. However, there are POSIX standard functions for socket programming, and the boost::asio library provides wrappers for them. Commented Jun 9, 2011 at 15:40
  • Ok, but i was looking for a different kind of "covering" (using classes and exceptions). Commented Jun 9, 2011 at 15:41
  • @user791229: Why do you want to use wrapper classes using C standard library functions? Why not just use the ones provided by the C++ standard library? Commented Jun 9, 2011 at 15:42
  • 1
    @user That isn't possible. Or sensible. Commented Jun 9, 2011 at 15:47

1 Answer 1

1

Maybe the question wasn't clear, btw i've found this library is exactly what i was looking for: commonc++.

Edit: Better alternative still maintained.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.