CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Internet/网络编程

文件名称:MY-SOCKET

介绍说明--下载内容来自于网络,使用问题请自行百度

MFC中各个Dialog之间的传值、添加会话框以及Listcontrl的使用。

    并从父窗体弹出的子窗体回弹到原来的父窗体,只需要使用CDialog::onOK() 方法即可,因为模态弹出的对话框具有阻塞性,若是使用新定义的对象再进行DoModal() 方法,反而会出错,即会又重新出现了新的窗体,虽然是一样的窗体,但是内容和值都不再存在。

    Updatedata()方法可以实现窗体和函数内参数值的传递。

    进行CString.Format() 函数的学习,参照C语言,学习 d, c和 s等的使用

Socket通信分为客户端和服务器端,我们这次要做的就是基于MFC的CSocket类的,因为诸如像线程的开辟、调度、回收和释放等工作,MFC都帮我们封装好了,可以不用我们去管;

    2.SQL Server所用的端口号应该避开应用程序会占用的端口号,并且服务器端的端口号是指定的,而客户端接收消息的端口号是随意分配的;

    3.在服务器端Listen以后,客户端才会有Connect,然后服务器的onaccept接收后会去建立连接,在服务器端要保存客户端的一个Socket对象,还有一点就是onaccept不在主窗体中写了,而是在服务器中做,相当于一个while(1)的死循环,反复不断的判断有没有建立连接。-Dialog between the transfer value of each MFC, add the Session box and Listcontrl use.

And the pop-up form the parent subform rebound to its original parent form, just use CDialog :: onOK () method can, because modal dialog box that has obstructive, if the use of the new definition of the object then DoModal () method, but to be wrong, that will reappear a new form, though the form is the same, but the content and the values ​ ​ are no longer present.

Updatedata () method can achieve transfer form and function internal reference value.

Conduct CString.Format () function study, referring to the C language, learning d, c and s like to use

Socket Communications is divided into client and server side, this time we have to do is MFC-based CSocket class, because such like thread open, scheduling, recovery and release work, MFC have helped us a good package, can not we to manage

2.SQL Server port number should be used to avoid the application takes the port number and t
(系统自动生成,下载前可以参看下载内容)

下载文件列表

MY SOCKET/chatClient/chatClient.aps
MY SOCKET/chatClient/chatClient.clw
MY SOCKET/chatClient/chatClient.cpp
MY SOCKET/chatClient/chatClient.dsp
MY SOCKET/chatClient/chatClient.dsw
MY SOCKET/chatClient/chatClient.h
MY SOCKET/chatClient/chatClient.ncb
MY SOCKET/chatClient/chatClient.opt
MY SOCKET/chatClient/chatClient.plg
MY SOCKET/chatClient/chatClient.rc
MY SOCKET/chatClient/chatClientDlg.cpp
MY SOCKET/chatClient/chatClientDlg.h
MY SOCKET/chatClient/ChatSocket.cpp
MY SOCKET/chatClient/ChatSocket.h
MY SOCKET/chatClient/Debug/chatClient.exe
MY SOCKET/chatClient/Debug/chatClient.ilk
MY SOCKET/chatClient/Debug/chatClient.obj
MY SOCKET/chatClient/Debug/chatClient.pch
MY SOCKET/chatClient/Debug/chatClient.pdb
MY SOCKET/chatClient/Debug/chatClient.res
MY SOCKET/chatClient/Debug/chatClientDlg.obj
MY SOCKET/chatClient/Debug/ChatSocket.obj
MY SOCKET/chatClient/Debug/StdAfx.obj
MY SOCKET/chatClient/Debug/vc60.idb
MY SOCKET/chatClient/Debug/vc60.pdb
MY SOCKET/chatClient/ReadMe.txt
MY SOCKET/chatClient/res/chatClient.ico
MY SOCKET/chatClient/res/chatClient.rc2
MY SOCKET/chatClient/Resource.h
MY SOCKET/chatClient/StdAfx.cpp
MY SOCKET/chatClient/StdAfx.h
MY SOCKET/chatServer/chatServer.aps
MY SOCKET/chatServer/chatServer.clw
MY SOCKET/chatServer/chatServer.cpp
MY SOCKET/chatServer/chatServer.dsp
MY SOCKET/chatServer/chatServer.dsw
MY SOCKET/chatServer/chatServer.h
MY SOCKET/chatServer/chatServer.ncb
MY SOCKET/chatServer/chatServer.opt
MY SOCKET/chatServer/chatServer.plg
MY SOCKET/chatServer/chatServer.rc
MY SOCKET/chatServer/chatServerDlg.cpp
MY SOCKET/chatServer/chatServerDlg.h
MY SOCKET/chatServer/ChatSocket.cpp
MY SOCKET/chatServer/ChatSocket.h
MY SOCKET/chatServer/Debug/chatServer.exe
MY SOCKET/chatServer/Debug/chatServer.ilk
MY SOCKET/chatServer/Debug/chatServer.obj
MY SOCKET/chatServer/Debug/chatServer.pch
MY SOCKET/chatServer/Debug/chatServer.pdb
MY SOCKET/chatServer/Debug/chatServer.res
MY SOCKET/chatServer/Debug/chatServerDlg.obj
MY SOCKET/chatServer/Debug/ChatSocket.obj
MY SOCKET/chatServer/Debug/ServerSocket.obj
MY SOCKET/chatServer/Debug/StdAfx.obj
MY SOCKET/chatServer/Debug/vc60.idb
MY SOCKET/chatServer/Debug/vc60.pdb
MY SOCKET/chatServer/ReadMe.txt
MY SOCKET/chatServer/res/chatServer.ico
MY SOCKET/chatServer/res/chatServer.rc2
MY SOCKET/chatServer/Resource.h
MY SOCKET/chatServer/ServerSocket.cpp
MY SOCKET/chatServer/ServerSocket.h
MY SOCKET/chatServer/StdAfx.cpp
MY SOCKET/chatServer/StdAfx.h
MY SOCKET/chatClient/Debug
MY SOCKET/chatClient/res
MY SOCKET/chatServer/Debug
MY SOCKET/chatServer/res
MY SOCKET/chatClient
MY SOCKET/chatServer
MY SOCKET

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com