8

Waiting send if the packet is not sent to the other endsystem? C send()

view full story
linux-howto

http://stackoverflow.com – I'm using send on Linux std socket to write a packet over network. Send call, buffers data and "always" return values greater than 0. Send Pass the problem to the operating system and the lower level. How can i stop the send call and wait for the delivery of the packet to the other endsystem? Waiting for the TCP ACK or something like that? if (send(broker->socket, packet, sizeof(packet), 0) < sizeof(packet)){ return -3; } The test will like: start to send packet,remove the ethernet,reattach. Thanks, sorry for my bad english. (HowTos)