Article 51Q03 recvmsg is returning buffer filled with zeros

recvmsg is returning buffer filled with zeros

by
chakka.lokesh
from LinuxQuestions.org on (#51Q03)
I am using write / recvmsg for writing / reading packets from the socket.

Buffer I am passing is much bigger than the size of packet I am writing / receiving.
To my surprise, I am seeing recvmsg is returning exact packet size but entire buffer is filled with zeros...!!!

code is here

https://www.linuxquestions.org/quest...4/#post6105820latest?d=yIl2AUoC8zA latest?i=wAaM37SEKiw:D80EN1v8orU:F7zBnMy latest?i=wAaM37SEKiw:D80EN1v8orU:V_sGLiP latest?d=qj6IDK7rITs latest?i=wAaM37SEKiw:D80EN1v8orU:gIN9vFwwAaM37SEKiw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments