开发者

peer - to - peer chat with AsyncSocket class

开发者 https://www.devze.com 2022-12-15 04:46 出处:网络
I want to use AsyncSocket class for peer - to - peer chat. I have been able to make a sample chat application where one user can communicate with other user by transmitting messages to server and then

I want to use AsyncSocket class for peer - to - peer chat. I have been able to make a sample chat application where one user can communicate with other user by transmitting messages to server and then from server to other user(s) by using it, but I am finding it some what difficult to manage sockets established in peer - to - peer chat and getting mixed up in server and client delegates provided by AsyncSock开发者_运维百科et class when both are implemented at one node.

I tried to search some sample code over net which uses AsyncSocket class to establish peer -to -peer chat, but unable to find any!

Moreover, I want to know will it be good to use AsyncSocket class for my requirements (establishing peer - peer chat, video conferencing, voice chat) or there is any better option available?

Thanks for any help,

Miraaj

0

精彩评论

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