Description
This pair of examples shows a simple use of the client server interface. The client, SimpleClient, has a single session with the server SimpleServer, implemented as a statically linked DLL.
Build Notes
The server must be built before the client. This requirement is specified in the component description file, bld.inf. SimpleServer.mmp is listed before SimpleClient.mmp. Build activities relating to particular .mmp files are carried out in the order in which they are listed in the bld.inf file.
Classes used
-
RSessionBase: client side session -
CServer2: the server base class -
CSession2: the server's session class
一个server应该指一个exe吧。
这个exe要实现特定的类而已。
server实现一般用到CServer2和CSession2
client端实现RSessionBase
本文介绍了一个简单的客户端-服务器接口示例。客户端SimpleClient通过单一会话连接到服务器SimpleServer,后者实现为静态链接的DLL。文章还提到了构建顺序及使用的几个关键类:RSessionBase用于客户端会话,CServer2是服务器基类,CSession2是服务器的会话类。
707

被折叠的 条评论
为什么被折叠?



