I am studying about network programming nowadays. So I am a little confused about P2P and Datagram .... what is the difference between these two?
I think both of them are connectionless networks.
But I know that in P2P (ad hoc) we don't have any access point. what about Datagram?
So why p2p java applications use DatagramSocket? I know that DatagramSocket can be used for a connectionless communication through a access point (Router)...
Thanks,