multiuser chat application on adhoc network in java
问题 I'm working on a multiuser chatting application on adhoc network, and one of its features is to allow the user to chat with more than one friend at the same time. Can anybody tell me when to start? Can i use socket programming for this... Is there any other way to do it? 回答1: You would need to implement a publisher subscriber model.Basically have each of your users implement an interface interface chatWithUser { public String getMessage(); public List<ChatWithUser> getFriends(); } All these