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
Post a Comment