I am trying to applied a C++ software and a C software to readout data from a hardware module via gigabit-ethernet interface. This interface is embedded to PC’s mother board via PCI-express.
The time for readout of C++ software is 4 times to 8 times slower than the C software. I really wonder where is the reason?
The header of C++ and C are the same (I checked this via tcpdump command of Linux).
I think the slow speed of C++ is caused by the overhead in tcp/ip connection …. I am thinking about some solutions …
I hope for suggestions, comments from experienced people.