创建自定义协议还是使用现有? [英] Create custom protocol or use existing?

查看:82
本文介绍了创建自定义协议还是使用现有?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想提高我的编程技巧。所以我在考虑聊天应用程序。但我不确定,如果我应该使用像xmpp这样的现有协议或创建我自己的协议。创建新协议是一项巨大的挑战。但从哪里开始?您有什么看法?



感谢您的建议。

Hi,
i would like to improve my programming skills. So I was thinking about chat application. But Im not sure, if I should use existing protocol like xmpp or create my own. Creating new protocol is big challenge. But where to start? What is your opinion?

thanks for your advices.

推荐答案

我不熟悉一般的XMPP协议或聊天应用程序。但是,如果XMPP是一种广泛使用的协议,我建议实现它。



通过实施现有协议,您将获得如何完成的体验。在编写XMPP协议时,您可以开始考虑它的优缺点。完成后,您将能够使用许多相同的代码结构轻松创建自己的协议。



使用现有协议的另一个好处是,您可以使用其他应用程序来测试您的XMPP协议的实现。
I'm not that familiar with the XMPP protocol or chat applications in general. However, if XMPP is a widely used protocol I would recommend implementing it.

By implementing an existing protocol you would gain the experience of how it's done. While coding the XMPP protocol you can start to think of it's pros and cons. After you are done you will be able to easily create your own protocol using a lot of the same code structure.

The other benefit of using an existing protocol is that you will have other applications available to test your implementation of the XMPP protocol with.


这篇关于创建自定义协议还是使用现有?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆