6

Packets sent from Linux TCP socket

view full story
linux-howto

http://www.unix.com – Hello, Our software is using a TCP socket (AF_INET, SOCK_STREAM) to communicate with an Ethernet device. When we send a message, the message object writes itself in full onto the socket's stream buffer before the software invokes send() from socket.h. I'm still researching, but have 2 questions: 1) After send() is invoked, is the information in the socket buffer broken into multiple packets? If so, what determines how the buffer contents are "broken up"? 2) Is there a way to guarantee that the buffer contents are sent across in a single packet? Thanks Dan (HowTos)