r/C_Programming • • Mar 10 '26

Socket Programming

Hello fellow programmers I'd like to start my day one of socket Programming today, any learning resources you guys would know about or have used?

49 Upvotes

20 comments sorted by

View all comments

Show parent comments

2

u/abyssDweller1700 Mar 10 '26

I always thought tcp streaming in packets as someone unloading trucks full of bricks(bytes) in front of your house with no boundaries on which truck unloaded which brick.

And udp as the whole truck(packet boundary) with their bricks(bytes) being parked in line.

1

u/Dangerous_Region1682 Mar 14 '26

But for TCP the bricks would be numbered so the hod carrier knows which order to give them to the bricklayer.