========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : TCP
========================================================================
AppWizard has created this TCP application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your TCP application.
TCP.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
TCP.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CTCPApp application class.
TCP.cpp
This is the main application source file that contains the application
class CTCPApp.
TCP.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
TCP.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
res\TCP.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file TCP.rc.
res\TCP.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one dialog class:
TCPDlg.h, TCPDlg.cpp - the dialog
These files contain your CTCPDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in TCP.rc, which can be edited in Microsoft
Visual C++.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named TCP.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
tcp通信MFC,课程设计
共31个文件
h:5个
cpp:4个
obj:4个
4星 · 超过85%的资源 需积分: 9 55 下载量 54 浏览量
2011-05-13
21:36:19
上传
评论
收藏 1.84MB RAR 举报
温馨提示
mfc做的tcp通信,测试正确无误 关于端口:基于TCP/IP协议的网络中,计算机都分配有一个I P地址,用一个3 2位二进制数来表示,正式的称呼是“ I P v 4地址”。客户机需要通过T C P或U D P和服务器通信时,必须指定服务器的I P地址和服务端口号。另外,服务器打算侦听接入客户机请求时,也必须指定一个I P地址和一个端口号。在选择端口时,应用必须特别小心,因为有些可用端口号是为“已知的”(即固定的)服务保留的(比如说文件传输协议和超文本传输协议,即FTP(21号端口)和HTTP(一般为8080端口)。“已知的协议”,即固定协议,采用的端口由“互联网编号分配认证(IANA)”控制和分配,RFC 1700中说明的编号。从本质上说,端口号分为下面这三类:“已知”端口、已注册端口、动态和(或)私用端口。 “已知“端口0~1023由IANA控制,是在UNIX中为固定服务保留的。 已注册的端口1024~49151是IANA列出来的,供普通用户的普通用户进程或程序使用。 49152~65535是动态和(或)私用端口。 普通用户应用应该选择1024~49151之间的已注册端口,从而避免端口号已被另一个应用或系统服务所用。此外,49152~65535间的端口可自由使用,因为IANA这些端口上没有注册服务。
资源推荐
资源详情
资源评论
收起资源包目录
TCP.rar (31个子文件)
TCP
TCP
StdAfx.cpp 205B
TCP.ncb 81KB
TCP.APS 20KB
TCP.plg 240B
Server.h 1KB
TCP.rc 5KB
TCP.h 1KB
TCPDlg.cpp 5KB
TCPDlg.h 2KB
Debug
TCP.res 3KB
TCP.obj 14KB
vc60.pdb 356KB
TCP.ilk 227KB
vc60.idb 209KB
TCP.pdb 393KB
TCPDlg.obj 32KB
StdAfx.obj 104KB
TCP.exe 108KB
Server.obj 6KB
TCP.pch 5.32MB
TCP.clw 1KB
ReadMe.txt 3KB
StdAfx.h 1KB
Resource.h 864B
res
TCP.ico 1KB
TCP.rc2 395B
TCP.dsp 4KB
TCP.opt 54KB
TCP.dsw 514B
Server.cpp 1KB
TCP.cpp 2KB
共 31 条
- 1
资源评论
- yk2020182013-04-24不会用 你可以写个文本介绍下
- 吴晗2013-11-23解压后直接使用,没有错误,很好,就是代码中没有注解
阅薇草堂
- 粉丝: 2
- 资源: 90
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功