Computer Science, asked by spanwar3802, 1 year ago

Difference between sock_stream and sock_dgram in c

Answers

Answered by himanshushekhar2
0

Difference between Sock_stream and Sock_dgram

TCP almost always uses SOCK_STREAM and UDP uses SOCK_DGRAM . TCP ( SOCK_STREAM ) is a connection-based protocol. The connection is established and the two parties have a conversation until the connection is terminated by one of the parties or by a network error. UDP ( SOCK_DGRAM ) is a datagram-based protocol.

Similar questions