无线网络聊天程序需要java代码
我已经编写了有线网络的聊天程序代码。 我想用java编写无线网络的聊天代码。我用谷歌搜索了这个。但是我找不到。所以请指导我用java编写无线网络的聊天代码。 提前致谢。
I have been written chat program code for wired network.
I want to write the chat code in java for wireless network.I googled it for this.But i can't found that.So please guide me to write the chat code in java for wireless networks in java.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Google 上没有找到任何内容的原因可能是因为它与使用有线网络没有什么不同。用于网络通信的介质类型位于比您的 Java 应用程序应该关心的级别更低的级别。
The reason why do didn't find anything on Google is probably because it's no different from working with a wired network. The type of medium used for network communication lies on a lower level than your Java application is suppose to care about.
在无线网络上创建聊天程序与在任何网络上创建聊天程序没有什么不同。通常,您不必处理网络堆栈深处的层。
基本上,您正在寻找的是有关如何用 Java 创建聊天程序的信息。你的问题有点模糊。您想创建自己的聊天协议还是实现现有协议,例如 XMPP(Jabber 和 Google Talk 背后的协议)?第一种可能性有点复杂,并且在学术背景之外毫无意义,所以我选择第二种。您可以查看允许您在 Java 中使用 XMPP 的库,例如 Smack:
http://www.igniterealtime.org/projects/smack/index.jsp
希望它有帮助...
Creating a chat program on a wireless network is not different from creating a chat program on any network. Normaly, you don't have to handle layers that deep in the network stack.
So basically, what you are looking for is infos about how to create a chat program in Java. Your question is a bit vague. Do you want to create your own chat protocol or implement an existing protocole, like XMPP (the protocol behind Jabber and Google Talk)? The first possibility is a bit complicated and kind of pointless outside an academic context, so I go with the second. You can look at libraries letting you use XMPP in Java, like Smack:
http://www.igniterealtime.org/projects/smack/index.jsp
Hope it helps...