The two most common transport layer protocols are the transmission control protocol (TCP) and the user datagram protocol (UDP). One of the main differences between the two protocols is reliability.
For users, a chat application seems to be a classic P2P application. You send a message to the chat room, and all users that take part at the chat receive the message. So far, you have learned ...