资源简介
这是自己在网络课程实验中编写的一个实时语音聊天系统,采用面向连接的TCP传输控制协议。包括客户端和服务器端,利用双缓冲技术来控制音频的连续性和实时性。
代码片段和文件信息
// 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()
{
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}
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
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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 740 2009-10-27 22:35 AUDIOTALK\AUDIOTALK.dsw
文件 115712 2009-10-28 21:47 AUDIOTALK\AUDIOTALK.ncb
文件 109568 2009-10-28 21:47 AUDIOTALK\AUDIOTALK.opt
文件 21164 2009-10-27 11:49 AUDIOTALK\Client\Client.aps
文件 1325 2009-10-27 17:00 AUDIOTALK\Client\Client.clw
文件 2157 2009-10-26 22:55 AUDIOTALK\Client\Client.cpp
文件 4272 2009-10-28 18:26 AUDIOTALK\Client\Client.dsp
文件 1324 2009-10-26 22:55 AUDIOTALK\Client\Client.h
文件 246 2009-10-28 21:39 AUDIOTALK\Client\Client.plg
文件 5714 2009-10-26 23:27 AUDIOTALK\Client\Client.rc
文件 11414 2009-10-28 21:38 AUDIOTALK\Client\ClientDlg.cpp
文件 2473 2009-10-27 23:10 AUDIOTALK\Client\ClientDlg.h
文件 110655 2009-10-28 21:38 AUDIOTALK\Client\Debug\Client.exe
文件 237840 2009-10-28 21:38 AUDIOTALK\Client\Debug\Client.ilk
文件 14416 2009-10-27 23:10 AUDIOTALK\Client\Debug\Client.obj
文件 5887452 2009-10-27 23:10 AUDIOTALK\Client\Debug\Client.pch
文件 377856 2009-10-28 21:38 AUDIOTALK\Client\Debug\Client.pdb
文件 2720 2009-10-27 23:10 AUDIOTALK\Client\Debug\Client.res
文件 43835 2009-10-28 21:38 AUDIOTALK\Client\Debug\ClientDlg.obj
文件 118846 2009-10-27 23:10 AUDIOTALK\Client\Debug\StdAfx.obj
文件 214016 2009-10-28 21:39 AUDIOTALK\Client\Debug\vc60.idb
文件 380928 2009-10-28 21:38 AUDIOTALK\Client\Debug\vc60.pdb
文件 3579 2009-10-26 22:55 AUDIOTALK\Client\ReadMe.txt
文件 1078 2009-10-26 22:55 AUDIOTALK\Client\res\Client.ico
文件 398 2009-10-26 22:55 AUDIOTALK\Client\res\Client.rc2
文件 913 2009-10-26 23:27 AUDIOTALK\Client\Resource.h
文件 208 2009-10-26 22:55 AUDIOTALK\Client\StdAfx.cpp
文件 1183 2009-10-27 22:09 AUDIOTALK\Client\StdAfx.h
文件 5112832 2009-10-27 23:23 AUDIOTALK\Server\Debug\Server.bsc
文件 110657 2009-10-27 23:23 AUDIOTALK\Server\Debug\Server.exe
............此处省略38个文件信息
- 上一篇:DEM——三维地形可视化
- 下一篇:C++ zip文件解压
相关资源
- C++视频聊天
- 多人聊天室 C++
- P2P聊天软件的C++实现包括语音功能
- MFC局域网聊天室C++
- 语音识别端点检测程序C++
- 基于TCP的网络聊天室的设计
- 基于TCP协议的C++聊天软件源代码
- C语言局域网文件传输和聊天
- C++ Socket网络聊天
- C++局域网监控系统.rar
- 用动态时间规整模型进行语音识别
- 局域网视屏监控模块vs2010可运行
- 基于MFC的聊天室网络socket
- 用遗传算法实现语音识别--基于mfcc参
- 百度语音识别api QT window下 调试应用
- 基于MFC基本对话框的CSocket局域网通信
- 基于MFC的简单网络聊天室
- C++ CAsyncSocket类聊天室程序
- C++聊天室(MFC实现)
- MFC 点对点聊天小系统
- 局域网监控系统vc
- VC++网络聊天室源代码和程序说明
- 语音识别STM_C语言代码
- 语音识别GMM模型
- 基于UDP协议的简单聊天系统设计与实
- MySock 应用Socket编程实现一个简单的网
- 局域网聊天器c++
- 使用ARP协议获取局域网内活动主机物
- VC6.0MFC聊天室
- C++实现简单聊天应用
评论
共有 条评论