开发者

How to make socket chat in C++?

开发者 https://www.devze.com 2023-03-22 23:36 出处:网络
Does anybody know how to mak开发者_如何学运维e socket chat in C++ using something like sockets in Java? Is there any way to make ip chat in C++?yes it is possible. You could use a library like Boos.As

Does anybody know how to mak开发者_如何学运维e socket chat in C++ using something like sockets in Java? Is there any way to make ip chat in C++?


yes it is possible. You could use a library like Boos.Asio which has an example of chat in its documentation : http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/chat/posix_chat_client.cpp (client part)


Yes to both of your questions. The program would work exactly the same in C++ as it does in Java. You listen on a host/port and send to a host/port. The only difference will be the language and the API used.

0

精彩评论

暂无评论...
验证码 换一张
取 消