资源简介
用socket实现C/S架构的小程序,包括TCP服务和UDP服务,TCP服务是计算数学表达式,UDP服务是返回反序字符串.内有说明文档

代码片段和文件信息
// Client.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Client.h“
#include “ClientDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CClientApp
BEGIN_MESSAGE_MAP(CClientApp CWinApp)
//{{AFX_MSG_MAP(CClientApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CClientApp construction
CClientApp::CClientApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CClientApp object
CClientApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CClientApp initialization
BOOL CClientApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
AfxInitRichEdit();
CClientDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 36624 2009-11-30 17:32 Client\Client.aps
文件 2062 2009-12-03 21:49 Client\Client.clw
文件 2084 2009-11-27 16:29 Client\Client.cpp
文件 4159 2009-11-27 16:24 Client\Client.dsp
文件 535 2009-11-27 16:29 Client\Client.dsw
文件 1324 2009-11-27 16:24 Client\Client.h
文件 58368 2009-12-03 21:49 Client\Client.ncb
文件 53760 2009-12-03 21:49 Client\Client.opt
文件 918 2009-12-03 21:44 Client\Client.plg
文件 6841 2009-11-30 17:32 Client\Client.rc
文件 10549 2009-12-03 21:43 Client\ClientDlg.cpp
文件 1802 2009-12-02 20:38 Client\ClientDlg.h
文件 114731 2009-12-03 21:44 Client\Debug\Client.exe
文件 241576 2009-12-03 21:44 Client\Debug\Client.ilk
文件 15589 2009-12-02 22:13 Client\Debug\Client.obj
文件 5637936 2009-12-02 22:13 Client\Debug\Client.pch
文件 386048 2009-12-03 21:44 Client\Debug\Client.pdb
文件 3388 2009-12-02 22:13 Client\Debug\Client.res
文件 51146 2009-12-03 21:44 Client\Debug\ClientDlg.obj
文件 110733 2009-12-02 22:13 Client\Debug\StdAfx.obj
文件 214016 2009-12-03 21:48 Client\Debug\vc60.idb
文件 372736 2009-12-03 21:44 Client\Debug\vc60.pdb
文件 3579 2009-11-27 16:24 Client\ReadMe.txt
文件 1078 2009-11-27 16:24 Client\res\Client.ico
文件 398 2009-11-27 16:24 Client\res\Client.rc2
文件 1236 2009-11-30 16:53 Client\resource.h
文件 204 2009-11-30 10:59 Client\StdAfx.cpp
文件 1316 2009-12-01 11:15 Client\StdAfx.h
文件 122923 2009-12-03 21:47 Server\Debug\Server.exe
文件 242388 2009-12-03 21:47 Server\Debug\Server.ilk
............此处省略36个文件信息
- 上一篇:walksatC语言
- 下一篇:gmfc 泡沫切割软件汉化
相关资源
- C++多线程网络编程Socket
- socket客户端.c
- socket服务端.c
- socket tcp应用
- socket通讯c++源码(客户端+服务端)
- MFC的异步网络通讯应用程序
- 各种关于CAsyncSocketCSocket内幕及其用法
- MFC多人聊天室
- 使用socket套接字发送udp数据包
- CAsyncSocket异步实现服务器与客户端
- 基于TCP协议的C/S传输文件C++)
- 基于socket文件传输的实现源码[C++]
- C语言实现TCP/IP协议通信和UDP协议通信
- c语言+UDP+DES加密+socket编程
- 局域网下,手机可以和电脑通过sock
- 计算机网络课程设计之Ping程序含C++原
- 基于c++和winsocket的局域网聊天源代码
- 基于udp的socket编程
- VC++,CSocket实现网络聊天,可发文件,
- 基于TCP协议的文件传输编程
- Socket编写的一个基于MFC的聊天程序源
- C++写的网络共享白板
- 基于TCP/IP socket的局域网聊天系统
- C++编写的多线程C/S模式仿QQ软件
- c++ socket 实现 语音 通信 双工
- MFC Csocket实现点对点文件传输
- CSocket端口扫描源代码MFC、VC++耿网出品
- 简单的基于MFC的Socket点对点对话客户
- MFC简单的客户端服务器通信软件
- c++实现的C/S模式图书借阅管理系统
评论
共有 条评论