I read the documentation regarding send() function, when it was said that the third parameter (len) is "The length, in bytes, of the data in buffer pointed to by the buf parameter".
I can't seem to understand if it sends the number of bytes I pass, or I nedd to pass the size of the buffer and it sends all the data included there.
Exmaple:
#define X 256 // main : char test[X] = {0}; memcpy(test, "hello", 6); send(sockfd, test, 6, 0) send(sockfd, test, 256,0) // will the first opetion send only hello? or hello000000....? Thanks!