Question : why is udp needed ?why can’t a user program directly access ip
why is udp needed ?why can’t a user program directly access ip
plz answer this quest i’ll be very thankful
Solution: why is udp needed ?why can’t a user program directly access ip
additionaly I’d like to remark that you don’t seem to be aware of ports. (right?)
Ports are needed for proper working.
Let’s say you are watching a movie via network and listen to some other music via network too.
So you are going to receive many Information. (packet with parts of that movie and packets with parts of that music)
So I’ll throw you two packets a second. You catch ’em and look on that packets. As addressee you only see you IP.
So what do you think is inside? Music or Movie?
With the knowledge that your movie runs on your PC on Port 2000 and that music on port 3000 you’ll know by catching a packet for “your-IP”:2000 that this is intended for your movie player and that packet for “your-IP”:3000 is for your music-player.
hope this helps somehow