simultaneously read and write on the same socket in C or C++ simultaneously read and write on the same socket in C or C++ c c