I've got a quite a bit of experience here, and the answer is pretty much zero. You calls are just going to the system... neither Java nor C/C++ are managing your TCP/IP stack; they just wrap calls. So ...
It's a commonly asked question in a world where every software developer wants to get the most out of every clock cycle their programs consume. It was also a topic at a Java "Birds of a Feather" ...