c - how to debug/trace socket programming -


in project there lot of c files. here, have send buffer process process using socket programming. tried send buffer using send system call returned 0 though data/buffer got transmitted process.

in wireshark able see packet incoming , outgoing.

actually send system call should return number of bytes sent have received zero. how got transmitted process process?

could me in issue? how debug/understand(steps involved/performed in linux after send call process receive call).

at least suggest me few tools , steps/procedure debug socket programming.

socket programming not different other programming. rule debug usual: use debugger , step through code. 1 other tool of choice tcp/ip wireshark know.

but @ so, must show used code, ideally minimal, complete, , verifiable example others can test more identify problems.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -