dchat-1.1

所属分类:网络编程
开发工具:C/C++
文件大小:19KB
下载次数:28
上传日期:2010-04-29 09:36:04
上 传 者wuly_001
说明:  聊天室的例子,很好的c++ socket编程参考
(This is a distributed text chat solution, written as an example on how to use the C++ Sockets library/framework. )

文件列表:
dchat-1.1 (0, 2006-04-21)
dchat-1.1\ChatSocket.h (1205, 2004-04-19)
dchat-1.1\DChatHandler.h (1517, 2004-04-19)
dchat-1.1\DChatMinderSocket.h (1373, 2004-04-19)
dchat-1.1\DChatMinionSocket.h (1508, 2004-04-19)
dchat-1.1\key.h (873, 2004-04-19)
dchat-1.1\ChatSocket.cpp (1928, 2004-04-19)
dchat-1.1\DChatHandler.cpp (2388, 2004-04-19)
dchat-1.1\DChatMinderSocket.cpp (1071, 2004-04-19)
dchat-1.1\DChatMinionSocket.cpp (1805, 2004-04-19)
dchat-1.1\dchat.cpp (3762, 2006-04-20)
dchat-1.1\key.cpp (1063, 2004-04-19)
dchat-1.1\Makefile (780, 2006-04-21)
dchat-1.1\gpl.txt (18349, 2004-07-04)

This is a distributed text chat solution, written as an example on how to use the C++ Sockets library / framework. It opens a telnet server at port 4404. When a user opens a session, the user is prompted for which name to use. Commands available after "login": /quit - end session /who - see who else is online anything else will be sent as text Installation ============ You need a working minder. I always try to have one working at "minder.alhem.net" port 9696. If not, download and install the minder from http://www.minion.info/minder.html For SSL operation, the minder needs a server public/private key pair. By default, those keys are loaded from the file "comb.pem". File not included in distribution, use openssl utilities to generate a key pair. http://www.openssl.org/ Minder host/port is hardcoded in dchat.cpp - make sure they are correct for the minder you want to use. The minion connect interval is hardcoded at 60 seconds in this example. So you must wait at least one minute before other minions are contacted. Other minions might contact you earlier, though. Minion encryption ================= The key.h / key.cpp files are of much more use if a custom encryption class is used instead of NullCrypt (which only base***-encodes whatever that is to be sent).

近期下载者

相关文件


收藏者