unfortunately, it appears that the GNU standard C++ library does not support the iostream::iostream(int fd) overload, as it says "invalid conversion from int to const char*" when I try to call it that way.
here is what I have tried apart from the above:
but this doesn't seem to be supported either.
FILE* i = fdopen(socket, "r");
FILE* o = fdopen(socket, "w");
std::filebuf ibuf(i, std::ios_base::in);
std::filebuf obuf(o, std::ios_base::out);
I'm running OpenSuse linux with kernel 2.6.x and gcc 4.2.1, and there are about 6 libstdc++ files in my /usr/lib directory, so I don't even know which one is getting linked in.