freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于動態(tài)協(xié)議的網(wǎng)絡(luò)視頻監(jiān)控系統(tǒng)的設(shè)計與實現(xiàn)-資料下載頁

2025-05-23 18:22本頁面
  

【正文】 ment(lib,WS2_32)pragma ment (lib,) // Global varialbes...define WM_NOTIFYICON (WM_APP+100)DWORD dwSize=0。BYTE Myvdata[20000]。BYTE MyRGBbuff[400000]。//////////////////////////int updatetime=0。int renewTime=4。BOOL b3323way=FALSE。/////////////////////////char headers[500], request1[100], request2[100]。 //連接錯誤返回到瀏覽的信息 char hdrErr[]= HTTP/ 404 對象沒有找到\r\n Server: MySocket Server\r\n ContentType: text/html\r\n AcceptRanges: bytes\r\n ContentLength: 66\r\n\r\n htmlh1bodyHTTP/ 404 對象沒有找到/h1/body/html\r\n。 //連接正確時返回的信息 char hdrFmt[]= HTTP/ 200 OK\r\n Server: MySocket Server\r\n Date: %s\r\n ContentType: text/html\r\n AcceptRanges: bytes\r\n ContentLength: %d\r\n。 //默認的頁面default HTML page char CustomHtml[]= html\r\n head\r\n title/title\r\n /head\r\n body\r\n p align=\center\/p\r\n h3 align=\center\a href=\\/a/h3\r\n p結(jié)束/p\r\n p /p\r\n /body/html\r\n\r\n。 /////////////////////////class CAboutDlg : public CDialog{public: CAboutDlg()。// Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }。 //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support //}}AFX_VIRTUAL// Implementationprotected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP()}。CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD){ //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT}void CAboutDlg::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CCameraVideoDlg dialogCCameraVideoDlg::CCameraVideoDlg(CWnd* pParent /*=NULL*/) : CDialog(CCameraVideoDlg::IDD, pParent){ //{{AFX_DATA_INIT(CCameraVideoDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()LoadIcon(IDR_MAINFRAME)。 nVideoType=24。 nrequest=0。 nsendcount=0。}void CCameraVideoDlg::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(CCameraVideoDlg) DDX_Control(pDX, IDC_IP, m_ip)。 DDX_Control(pDX, IDC_BAOBAO, m_SET)。 //}}AFX_DATA_MAP}BEGIN_MESSAGE_MAP(CCameraVideoDlg, CDialog) //{{AFX_MSG_MAP(CCameraVideoDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_START, OnStart) ON_WM_DESTROY() ON_MESSAGE(WM_NET_DATA_ARRIVE,OnDataArrivedMsg) ON_BN_CLICKED(IDC_CHECK1, OnCheck1) ON_WM_TIMER() ON_BN_CLICKED(IDC_BUTTON1, OnButton1) ON_WM_CLOSE() ON_MESSAGE(WM_NOTIFYICON,OnNotifyIcon) ON_COMMAND(IDD_ABOUTME, OnAboutme) ON_COMMAND(ID_CLOSEIT, OnCloseit) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CCameraVideoDlg message handlersBOOL CCameraVideoDlg::OnInitDialog(){ CDialog::OnInitDialog()。 // Add About... menu item to system menu. // IDM_ABOUTBOX must be in the system mand range. ASSERT((IDM_ABOUTBOX amp。 0xFFF0) == IDM_ABOUTBOX)。 ASSERT(IDM_ABOUTBOX 0xF000)。 CMenu* pSysMenu = GetSystemMenu(FALSE)。 if (pSysMenu != NULL) { CString strAboutMenu。 (IDS_ABOUTBOX)。 if (!()) { pSysMenuAppendMenu(MF_SEPARATOR)。 pSysMenuAppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu)。 } } // Set the icon for this dialog. The framework does this automatically // when the application39。s main window is not a dialog SetIcon(m_hIcon, TRUE)。 // Set big icon SetIcon(m_hIcon, FALSE)。 // Set small icon // TODO: Add extra initialization here // Capturing is not yet started... isCaptureStarted=FALSE。 isViewLocalVideo=TRUE。 // ((CButton*)(GetDlgItem( IDC_CHECK1 )))SetCheck( isViewLocalVideo ) 。 ReadParam()。 // Prepare for capture video from webcam... vidcap=new VideoCapture()。 vidcapSetDialog(this)。 myw=176。 myh=144。 if(vidcapInitialize(myw,myh)) // success { thism_bmpinfo=amp。vidcapm_bmpinfo。 nVideoType=vidcapnVideoType。 isVideo=TRUE。 } else { isVideo=FALSE。 // Setup bmpinfo structure yourself m_bmpinfo=new BITMAPINFO。 m_bmpinfo=sizeof(BITMAPINFOHEADER)。 m_bmpinfo=myw。 m_bmpinfo=myh。 m_bmpinfo=1。 m_bmpinfo=24。 m_bmpinfo=0。 m_bmpinfo=0。 m_bmpinfo=0。 m_bmpinfo=0。 m_bmpinfo=0。 m_bmpinfo=0。 } // Adjust display windows CWnd *bwnd。 CRect brect。 // For local video display window bwnd=thisGetDlgItem(IDC_LOCALBORDER)。 bwndGetWindowRect(brect)。 ScreenToClient(brect)。 local_wnd_x=().x。 local_wnd_y=().y。 m_hdc=thisGetDC()m_hDC。 // Initialize DIB for drawing... hdib=::DrawDibOpen()。 if(hdib!=NULL) { ::DrawDibBegin(hdib, m_hdc, 1, // don39。t stretch 1, // don39。t stretch amp。m_bmpinfobmiHeader, myw, // width of image myh, // height of image 0 )。 } m_pServer=new CIocpModeSvr。 (_T())。 KillTimer(1)。 SetTimer(1,1000*60*5,NULL)。 // 創(chuàng)建 socket WSADATA wsaData。 WSAStartup( MAKEWORD(2,2), amp。wsaData )。 char host[256]。 in_addr in。 struct hostent *i。 gethostname(host,256)。 if((i=gethostbyname(host))!=NULL) { memcpy(amp。in,ih_addr_list[0],ih_length)。 char *ip=::inet_ntoa(in)。 (ip)。 (0)。 } //增加托盤 NOTIFYICONDATA tnd。 =sizeof(NOTIFYICONDATA)。 =thism_hWnd。 =IDR_MAINFRAME。 =NIF_MESSAGE|NIF_ICON|NIF_TIP。 =WM_NOTIFYICON。 =LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(
點擊復制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1