资源简介
这是自己在网络课程实验中编写的一个实时语音聊天系统,采用面向连接的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语言实现)
- Qt TCP聊天室demo
- dsp课程设计——语音加密.zip
- 自绘CListCtrl聊天列表MFC
- pcm语音编码
- MFC多人聊天室
- Windows+C语言构建网络聊天室内含源程
- ISD4004语音芯片C语言程序
- 基于c++的科大讯飞源码
- 语音识别系统设计
- MFC聊天室含源代码.rar
- 用matlab编的基于DTW和MFC算法的语音识
- 用MFC实现的简单qq聊天
- P2P 聊天室 c++ 版本 附详细文档
- 局域网下,手机可以和电脑通过sock
- VC开发MFC局域网屏幕监控系统完美版
- 基于c++和winsocket的局域网聊天源代码
- 局域网截包程序设计C++
- VC++,CSocket实现网络聊天,可发文件,
- vc++课程设计——聊天室
- Socket编写的一个基于MFC的聊天程序源
- 聊天软件,用套接字编写,完整代码
- MFC视频聊天
- mfc聊天程序 网络编程用到的
- 用C++实现的聊天程序
- 基于UDP的简单可视化界面聊天程序c
- C++做的具有录音及播放的语音程序
- C++做的一个聊天室程序
- 基于TCP/IP socket的局域网聊天系统
评论
共有 条评论