TCP-IP questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am implementing a server-client tcp-ip application and I would like to know some things.

a) When read(2) returns, is it sure that the other side has recieved the whole buffer passed to read(2)?
b) If i have a loop which write(2) one byte at each itteration, the kernel sends many tcp packets each one containing one byte of userfull data?
c) An ACK is sent when the kernel receives a tcp packet or when a userspace read(2) from the socket occurs?


Thank you in advance.

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux