登录
首页 » Windows Socket编程 » WINSOCK服务器端示例程序说明 该程序是基于对话框编程的,是采用一对多的方式进行连接的。 整个程序主要由CServerDlg,CServerApp,CLis...

WINSOCK服务器端示例程序说明 该程序是基于对话框编程的,是采用一对多的方式进行连接的。 整个程序主要由CServerDlg,CServerApp,CLis...

于 2022-01-26 发布 文件大小:38.35 kB
0 235
下载积分: 2 下载次数: 1

代码说明:

WINSOCK服务器端示例程序说明 该程序是基于对话框编程的,是采用一对多的方式进行连接的。 整个程序主要由CServerDlg,CServerApp,CListenSocket,CClientSocket构成的。 (所有关于类的说明在代码中有) 下面简单介绍一下程序流程: 主程序调用CListenSocket类的对象来进行对Socket的监听,当收到请求时调用主程序的函数来处理相应的连接,把Socket放进队列中。 对于Socket的接收数据和断开连接是由消息来触发的,是通过调用基类CSocket中的虚函数重载来处理的。 注:详细的过程,在程序代码中均有注释!-Winsock server sample program note that the procedure was based on dialog programming, using one-to-many is the way to connect. The entire process by CServerDlg, CServerApp, CListenSocket, constitute the CClientSocket. (All categories on the note in code) The following outlines procedures have : main program called CListenSocket category to the target of the listening socket, when the call request is received when the main program functions to the corresponding connections, socket into the queue. Socket for the reception of data and disconnected from the news to trigger, by calling the base class CSocket the virtual function to handle the heavy load. Note : Details of the procedure code have Notes!

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Delphi實現局域網遠端開機
    遠端喚醒(Wake On Lan,WOL)是許多網管人員喜歡使用的功能之一。有了遠端喚醒,對於不需要
    2022-02-25 04:06:10下载
    积分:1
  • 自己写的一个多线聊天序的服务器端 已经用面向对象的方法封装了。 希望对别人有帮助...
    自己写的一个多线程聊天程序的服务器端 已经用面向对象的方法封装了。 希望对别人有帮助-yourself writing a multithreaded process chat server has been used object-oriented methods of packaging. Want to help others
    2022-06-21 17:57:16下载
    积分:1
  • 1。forumportal两放置。论坛的内容放forumportal内容…
    1. 放置好ForumPortal 2. 将论坛目录置于ForumPortal目录下 3. 执行http://.../Install.aspx安装 4. 确保对文件访问有足够的权限(EveryOne写入权限) 5. 执行3部安装过程后,将自动删除Install.aspx文件,若程序没有权限删除,则请手动删除 6. 倘若程序没有修改web.config的权限,请手动修改数据库连接串(数据库名称即为论坛数据库名称) 7. ForumPortal后台帐号,当然就是论坛后台帐号啦,一样-1. ForumPortal two well placed. Contents of the forum placed ForumPortal Contents under 3. implementation http : //.../ Install.aspx installation 4. to ensure there are sufficient documents to visit the competence (Ever yOne write competence) 5. implementation of three installation process, Install.aspx will automatically delete the document, if no authority to delete procedures, please manually delete 6. If the process is not the authority to amend sed, please manually modify the database connection strings (name of the database shall Forum database name) 7. ForumPortal background account, of course, is the background account-- the Forum, like
    2022-08-16 01:51:47下载
    积分:1
  • 多个人聊天序。
    多个人聊天程序。-personal chat program.
    2022-01-26 01:08:13下载
    积分:1
  • windows 网络连接
    windows 网络连接编程-windows network programming
    2023-07-22 00:55:03下载
    积分:1
  • gioi thieu co ban ve mang thong tin: 1.tong quan ve mang thong tin 2. mang va...
    gioi thieu co ban ve mang thong tin: 1.tong quan ve mang thong tin 2. mang va dich vu vien thong 3. cong nghe chuye mach 4. chuyen mach theo thoi gian
    2022-06-12 02:20:41下载
    积分:1
  • DELPHI写仿PS的部分功能,值得参考。
    DELPHI编写仿PS的部分功能,值得参考。-DELPHI part of the preparation of imitation PS function, it is also useful.
    2022-03-24 20:09:24下载
    积分:1
  • [network category] Screen Stars _V1.0_Beta
    [网络类]屏幕精灵_V1.0_Beta -[network category] Screen Stars _V1.0_Beta
    2022-02-22 05:37:56下载
    积分:1
  • Listen Line 互联网监听工具
    Listen Line 互联网监听工具-Listen Line Internet monitoring tools
    2022-07-21 06:57:44下载
    积分:1
  • 在vc环境下获取网卡的mac地址,一个小
    在vc环境下获取网卡的mac地址,一个小程序-vc environment in the LAN access to the mac address, a small program
    2022-08-26 11:47:06下载
    积分:1
  • 696516资源总数
  • 106633会员总数
  • 4今日下载