如何设计一个Messenger? [英] How to design a messenger?
问题描述
我想开发小型Messenger.
它必须具有两个功能:制图( 您是说聊天"吗? )和文件传输.
服务器是Linux,客户端是Windows应用程序.
但是我无法设计此服务器和客户端.
协议是最大的瓶颈.
我在Linux和Windows上都具有C,C ++的技能.
请帮帮我!
I want to develop small messenger.
This must have two functionalities: charting (did you mean ''chatting''?) and file transferring.
Server is Linux and client is a Windows application.
But I can''t design this server and client.
Largest bottleneck is the protocol.
I have skills of C,C++ in both Linux and Windows.
Please help me!
推荐答案
我有C语言技能,Linux和Windows中的C ++
I have skills of C,C++ in both Linux and Windows
最大的瓶颈是协议.
协议不应该成为您的障碍.这是您的系统,您正在开发Server
和Client
,因此您可以设计尽可能简单的协议以满足您的需求.
有了这样的控件,应该可以大大简化您的任务.
Protocol shouldn''t be an obstacle for you. This is your system: you are developing both the Server
and the Client
, hence you may design the protocol as simple as possible to just fit your needs.
Having such a control should simplify a lot your task.
您的问题太含糊;无法指导整个开发过程,您必须从某个地方开始并提出特定的问题.
您可以使用一些协议. XMPP是首选,MSNP是专有的.这比滚动自己的协议要容易.
安装开源 XMPP/Jabber [此 [ ^ ]开源库.
关于XMPP和开源应用程序,有很多文档.
祝您好运:)
Your question is too vague; it''s not possible to guide the entire development proces, you''ll have to start somewhere and come up with specific questions.
There''s a few protocols that you can use; XMPP would be preferred, MSNP is proprietary. That''s easier than rolling your own protocol.
Install an Open Source XMPP/Jabber[^] server. There''s also clientside support for this protocol using this[^] open source library.
There''s quite some documentation on XMPP and the open source applications.
Good luck :)
请先定义一个二进制数据协议.使用套接字programmig,(应为tcp协议).请参考 http://www.linuxhowtos.org/C_C++/socket.htm
[广告已删除]
Define a binary data protocol first. Use socket programmig, (should be tcp protocol). Refer to http://www.linuxhowtos.org/C_C++/socket.htm
[Advertisement removed]
这篇关于如何设计一个Messenger?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!