基于udp协议和openCV编程实现的视频传输程序,具有自动获取本地IP地址功能,客户端输入服务器端IP,点击发送,服务器端可实现实时的接收和播放,在可靠的局域网环境下,多次测试传输可靠,除此以外具有原理简单,可扩展的优点
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 36380 2013-01-03 15:14 图像传输MFC程序ClientClient.aps
文件 1291 2013-01-03 15:16 图像传输MFC程序ClientClient.clw
文件 2288 2012-10-21 14:00 图像传输MFC程序ClientClient.cpp
文件 4217 2012-10-14 20:23 图像传输MFC程序ClientClient.dsp
文件 537 2012-10-14 19:43 图像传输MFC程序ClientClient.dsw
文件 1324 2012-10-14 19:43 图像传输MFC程序ClientClient.h
文件 140288 2013-01-03 15:16 图像传输MFC程序ClientClient.ncb
文件 50688 2013-01-03 15:16 图像传输MFC程序ClientClient.opt
文件 745 2013-01-03 15:08 图像传输MFC程序ClientClient.plg
文件 5853 2013-01-03 15:14 图像传输MFC程序ClientClient.rc
文件 6865 2012-11-02 11:49 图像传输MFC程序ClientClientDlg.cpp
文件 1747 2012-10-21 14:58 图像传输MFC程序ClientClientDlg.h
文件 110688 2013-01-03 15:08 图像传输MFC程序ClientDebugClient.exe
文件 232944 2013-01-03 15:08 图像传输MFC程序ClientDebugClient.ilk
文件 16318 2012-10-21 14:58 图像传输MFC程序ClientDebugClient.obj
文件 5592616 2012-10-14 19:49 图像传输MFC程序ClientDebugClient.pch
文件 410624 2013-01-03 15:08 图像传输MFC程序ClientDebugClient.pdb
文件 2772 2013-01-03 15:08 图像传输MFC程序ClientDebugClient.res
文件 30863 2012-11-28 14:37 图像传输MFC程序ClientDebugClientDlg.obj
文件 107470 2012-10-14 19:49 图像传输MFC程序ClientDebugStdAfx.obj
文件 295936 2013-01-03 15:08 图像传输MFC程序ClientDebugvc60.idb
文件 405504 2012-11-28 14:37 图像传输MFC程序ClientDebugvc60.pdb
文件 3579 2012-10-14 19:43 图像传输MFC程序ClientReadMe.txt
文件 1078 2012-10-14 19:43 图像传输MFC程序Client
esClient.ico
文件 398 2012-10-14 19:43 图像传输MFC程序Client
esClient.rc2
..A.SH. 3072 2013-01-03 15:06 图像传输MFC程序Client
esThumbs.db
文件 864 2012-10-19 08:55 图像传输MFC程序Client
esource.h
文件 208 2012-10-14 19:43 图像传输MFC程序ClientStdAfx.cpp
文件 1102 2012-10-14 19:43 图像传输MFC程序ClientStdAfx.h
文件 110698 2012-11-27 21:05 图像传输MFC程序ServeDebugServe.exe
............此处省略38个文件信息
// Client.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Client.h“
#include “ClientDlg.h“
#include
#include “cv.h“
#include “highgui.h“
#include
#include
#define blocksize 38880
#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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 36380 2013-01-03 15:14 图像传输MFC程序ClientClient.aps
文件 1291 2013-01-03 15:16 图像传输MFC程序ClientClient.clw
文件 2288 2012-10-21 14:00 图像传输MFC程序ClientClient.cpp
文件 4217 2012-10-14 20:23 图像传输MFC程序ClientClient.dsp
文件 537 2012-10-14 19:43 图像传输MFC程序ClientClient.dsw
文件 1324 2012-10-14 19:43 图像传输MFC程序ClientClient.h
文件 140288 2013-01-03 15:16 图像传输MFC程序ClientClient.ncb
文件 50688 2013-01-03 15:16 图像传输MFC程序ClientClient.opt
文件 745 2013-01-03 15:08 图像传输MFC程序ClientClient.plg
文件 5853 2013-01-03 15:14 图像传输MFC程序ClientClient.rc
文件 6865 2012-11-02 11:49 图像传输MFC程序ClientClientDlg.cpp
文件 1747 2012-10-21 14:58 图像传输MFC程序ClientClientDlg.h
文件 110688 2013-01-03 15:08 图像传输MFC程序ClientDebugClient.exe
文件 232944 2013-01-03 15:08 图像传输MFC程序ClientDebugClient.ilk
文件 16318 2012-10-21 14:58 图像传输MFC程序ClientDebugClient.obj
文件 5592616 2012-10-14 19:49 图像传输MFC程序ClientDebugClient.pch
文件 410624 2013-01-03 15:08 图像传输MFC程序ClientDebugClient.pdb
文件 2772 2013-01-03 15:08 图像传输MFC程序ClientDebugClient.res
文件 30863 2012-11-28 14:37 图像传输MFC程序ClientDebugClientDlg.obj
文件 107470 2012-10-14 19:49 图像传输MFC程序ClientDebugStdAfx.obj
文件 295936 2013-01-03 15:08 图像传输MFC程序ClientDebugvc60.idb
文件 405504 2012-11-28 14:37 图像传输MFC程序ClientDebugvc60.pdb
文件 3579 2012-10-14 19:43 图像传输MFC程序ClientReadMe.txt
文件 1078 2012-10-14 19:43 图像传输MFC程序Client
esClient.ico
文件 398 2012-10-14 19:43 图像传输MFC程序Client
esClient.rc2
..A.SH. 3072 2013-01-03 15:06 图像传输MFC程序Client
esThumbs.db
文件 864 2012-10-19 08:55 图像传输MFC程序Client
esource.h
文件 208 2012-10-14 19:43 图像传输MFC程序ClientStdAfx.cpp
文件 1102 2012-10-14 19:43 图像传输MFC程序ClientStdAfx.h
文件 110698 2012-11-27 21:05 图像传输MFC程序ServeDebugServe.exe
............此处省略38个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)