Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

which protocol used for developing a chat application over LAN?

I would like to create a chat application(desktop-app) in c++, so which protocol i would need to study and implement. UDP(?)

Please provide me some good thoughts and advices and links also.

like image 954
coderex Avatar asked Mar 09 '10 19:03

coderex


1 Answers

UDP protocol is not the best choice for Internet chat program. UDP packets will be blocked by proxies. And UDP doesn't guarantee packets delivery. So probably TCP protocol will be a better choice.

Take a look on Boost.Asio Library. It already contains primitive implementation of chat program.

like image 168
Kirill V. Lyadvinsky Avatar answered Sep 20 '22 00:09

Kirill V. Lyadvinsky