I want to know that if the socket is in a connected state with SOCK_STREAM transfer, does the packet sent between send() and recv() did reliable TCP protocol? Something like ACK and seq number for prevent the packet lost and correctness, or I need to implement the TCP protocol by myself?
Also,
If UDP without connect() with SOCK_DGRAM, does the packet sent between sendto() and recvfrom() did the UDP protocol? (ACK, seq number or timer...)
SOCK_STREAM
as a stream. – David Schwartz