1

about linux sendto

view story
linux-howto

http://www.linuxquestions.org – Hi, I just need to get this clarified. When we send character data buffer with sento over udp socket, does sendto make a copy of the buffer or does it just take the pointer and size and send the data buffer from pointed location. I ask this for understanding that would it be legal or illegal to allocate a memory buffer then call sendto in non-block mode and then immediately delete the allocated memory, or, a case where we keep a common buffer and in a loop change the value of buffer and call sendto. Regards, Mandeep (HowTos)