When send() returns in socket programming, what does that mean?

In general, all it guarantees is that the data has been copied to the kernel buffer. The kernel may or may not immediately initiate transmission. Indeed, there are some cases where due to TCP windowing, it may not be possible to transmit immediately Of course, it's possible that, immediately after copying to the kernel buffer, a context switch might occur, and by the time your process gets to run again, the packet may have been received by the peer - but this is highly unlikely.

In general, all it guarantees is that the data has been copied to the kernel buffer. The kernel may or may not immediately initiate transmission. Indeed, there are some cases where due to TCP windowing, it may not be possible to transmit immediately.

Of course, it's possible that, immediately after copying to the kernel buffer, a context switch might occur, and by the time your process gets to run again, the packet may have been received by the peer - but this is highly unlikely.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions