开发者

Alternative to Multicast

I am trying to implement an application where a part of it functions similar to chat. There are several users and the connection is P2P. The data send from each peer to the others should be serialised objects. I am having difficulty 开发者_如何学JAVAdeciding how the data will be send. The best choice seemed Multicast , but since its chat i can't afford losing data(that would corrupt the text ??). On the other hand if I use TCP , each peer should be connected to every other peer in order to listen for updates and that sounds wrong (??)/would create a mess.

I would like suggestions as to how I could implement something like that(send data to multiple clients,listen for updates without centralized server).I have already checked JXTA and I am trying to see if its possible to implement this on my own.Also i have read about reliable UDP but haven't found any 'official' solutions/something i could use easily.

p.s I have seen similar questions to this one and was hoping for a more personalised help.


Take a look at zeromq.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜