在客户/服务器网络编程中使用类 [英] Using Classes in Client/Server Network Programming
本文介绍了在客户/服务器网络编程中使用类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨,,
我在C ++ Builder XE3中编写客户端/服务器网络(使用控制台应用程序),它已经完成了好好工作。我的问题是:
是否可以在网络编程中使用类,尽管我有两个独立的项目,一个用于客户端,另一个用于服务器。我在每个班级都有不同的会员风格和功能?
需要帮助请:
问候。
Rania
解决方案
是的,这是可能的,为什么不呢?
查看此项目的示例:使用C ++和Windows的简单客户端 - 服务器网络Winsock [ ^ ]
Hi,,
I''m programming a client/server network (using a console application) in C++ Builder XE3, and it''s done and working properly. My question is:
Is it possible to use classes in network programming, eventhough i have two separate projects, one for the client and the other for the server. Where i have a different member varalbles and functions for each class??
Need help please :)
Regards.
Rania
解决方案
Yes, this is possible, why not?
Take a look for example at this Project: Simple client-server network using C++ and Windows Winsock[^]
这篇关于在客户/服务器网络编程中使用类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文