資源簡介
IPC SDK 二次開發(fā)包帶Demo:
bin: 客戶端SDK以及說明
demo:客戶端SDK demo軟件.
dll: 客戶端SDK 頭文件以及庫文件.
help:客戶端SDK說明文件
NetFileServer: 遠(yuǎn)程文件回放服務(wù)SDK以及demo
NetHostSDK: 報(bào)警服務(wù)器SDK
NetPlaySDK: 流播放SDK以及demo
PlayerSDK: 遠(yuǎn)程以及本地文件回放以及demo
tools: 工具軟件.
PlayDemo: 使用客戶端SDK通過獲取原始碼流實(shí)現(xiàn)AVI文件錄像代碼.
編碼器控件: 網(wǎng)頁中使用的編碼器OCX源碼
播放器控件: 網(wǎng)頁中使用的播放器OCX源碼

代碼片段和文件信息
//?DlgAudioTalk.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“l(fā)aump4test.h“
#include?“DlgAudioTalk.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDlgAudioTalk?dialog
CDlgAudioTalk::CDlgAudioTalk(CWnd*?pParent?/*=NULL*/)
:?CDialog(CDlgAudioTalk::IDD?pParent)
{
//{{AFX_DATA_INIT(CDlgAudioTalk)
m_addr?=?_T(““);
m_password?=?_T(““);
m_port?=?3000;
m_username?=?_T(““);
//}}AFX_DATA_INIT
m_talkstatus?=?FALSE;
}
void?CDlgAudioTalk::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgAudioTalk)
DDX_Control(pDX?IDC_LIST_TALK?m_list);
DDX_Text(pDX?IDC_EDIT_ADDR?m_addr);
DDV_MaxChars(pDX?m_addr?30);
DDX_Text(pDX?IDC_EDIT_PASSWORD?m_password);
DDV_MaxChars(pDX?m_password?30);
DDX_Text(pDX?IDC_EDIT_PORT?m_port);
DDX_Text(pDX?IDC_EDIT_USERNAME?m_username);
DDV_MaxChars(pDX?m_username?30);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgAudioTalk?CDialog)
//{{AFX_MSG_MAP(CDlgAudioTalk)
ON_BN_CLICKED(IDC_BTN_REV?OnBtnRev)
ON_BN_CLICKED(IDC_BTN_ADD?OnBtnAdd)
ON_BN_CLICKED(IDC_BTN_DEL?OnBtnDel)
ON_NOTIFY(NM_CLICK?IDC_LIST_TALK?onclickListTalk)
ON_WM_DESTROY()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CDlgAudioTalk?message?handlers
void?CDlgAudioTalk::OnBtnRev()?
{
CString?lpstr;
char?username[40]password[40]url[40]urlold[40];
int?port;
if(!m_talkstatus)?return;
if(m_list.GetSelectedCount()?==?0)???return;
int?nItem?=?m_list.GetNextItem(-1?LVNI_SELECTED);
if(nItem?==?-1)?return;
if(UpdateData(TRUE))
{
if(m_addr.IsEmpty()?||?m_username.IsEmpty()?||?m_password.IsEmpty())
{
AfxMessageBox(“參數(shù)錯(cuò)誤“);
return;
}
lpstr?=?m_list.GetItemText(nItem0);
sprintf(urlold“%s“l(fā)pstr);
port?=?atoi(m_list.GetItemText(nItem1));
sprintf(username“%s“m_username);
sprintf(password“%s“m_password);
sprintf(url“%s“m_addr);
if(VSNET_ClientTalkAddnew(urlusernamepasswordm_port)?==?0)
{
VSNET_ClientTalkDel(urloldport);
}
else
{
AfxMessageBox(“修改失敗“);
return;
}
m_list.SetItemText(nItem0m_addr);
lpstr.Format(“%d“m_port);
m_list.SetItemText(nItem1lpstr);
m_list.SetItemText(nItem2m_username);
m_list.SetItemText(nItem3m_password);
}
}
void?CDlgAudioTalk::OnBtnAdd()?
{
CString?lpstr;
char?username[40]password[40]url[40];
if(!m_talkstatus)?return;
if(UpdateData(TRUE))
{
if(m_addr.IsEmpty()?||?m_username.IsEmpty()?||?m_password.IsEmpty())
{
AfxMessageBox(“參數(shù)錯(cuò)誤“);
return;
}
if(m_talkstatus)
{
sprintf(username“%s“m_username);
sprintf(password“%s“m_password);
sprintf(url“%s“m_addr);
if(VSNET_ClientTalkAddnew(urlusernamepasswordm_port)?!=?0)
{
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????435??2008-07-02?10:45??說明.txt
?????文件?????385024??2009-02-23?17:22??bin\hi_h264dec_w.dll
?????文件?????114688??2009-02-23?17:22??bin\LAUMp4Test.exe
?????文件?????626688??2009-02-24?11:35??bin\NetClient.dll
?????文件??????20480??2008-07-02?10:45??bin\NetHostSDK.dll
?????文件???????4881??2008-07-02?10:45??demo\DlgAudioTalk.cpp
?????文件???????1508??2008-07-02?10:45??demo\DlgAudioTalk.h
?????文件???????6359??2008-07-02?10:45??demo\DlgCfgAlarm.cpp
?????文件???????1624??2008-07-02?10:45??demo\DlgCfgAlarm.h
?????文件???????3498??2008-07-02?10:45??demo\DlgCfgTimelist.cpp
?????文件???????1421??2008-07-02?10:45??demo\DlgCfgTimelist.h
?????文件???????5117??2008-07-02?10:45??demo\DlgCfgViparam.cpp
?????文件???????1583??2008-07-02?10:45??demo\DlgCfgViparam.h
?????文件???????4104??2008-07-02?10:45??demo\DlgCfgVMask.cpp
?????文件???????1481??2008-07-02?10:45??demo\DlgCfgVMask.h
?????文件??????16762??2008-07-02?10:45??demo\DlgChannelCfg.cpp
?????文件???????2727??2008-07-02?10:45??demo\DlgChannelCfg.h
?????文件???????2400??2008-07-02?10:45??demo\DlgHostNotify.cpp
?????文件???????1476??2008-07-02?10:45??demo\DlgHostNotify.h
?????文件???????4739??2008-07-02?10:45??demo\DlgMotionArea.cpp
?????文件???????1758??2008-07-02?10:45??demo\DlgMotionArea.h
?????文件???????5637??2008-07-02?10:45??demo\DlgSerialCfg.cpp
?????文件???????1633??2008-07-02?10:45??demo\DlgSerialCfg.h
?????文件???????8121??2008-07-02?10:45??demo\DlgServerCfg.cpp
?????文件???????1950??2008-07-02?10:45??demo\DlgServerCfg.h
?????文件???????5880??2008-07-02?10:45??demo\DlgSet.cpp
?????文件???????1813??2008-07-02?10:45??demo\DlgSet.h
?????文件???????6053??2008-07-02?10:45??demo\DlgTimedReset.cpp
?????文件???????1548??2008-07-02?10:45??demo\DlgTimedReset.h
?????文件???????1049??2008-07-02?10:45??demo\DlgUartTran.cpp
............此處省略313個(gè)文件信息
評(píng)論
共有 條評(píng)論