⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 senddataserverdlg.h

📁 1.SendDataClient是视频数据传输的发送端的源程序
💻 H
字号:
// SendDataServerDlg.h : header file
//

#if !defined(AFX_SENDDATASERVERDLG_H__8F621598_E20C_4988_99B7_DB6982399806__INCLUDED_)
#define AFX_SENDDATASERVERDLG_H__8F621598_E20C_4988_99B7_DB6982399806__INCLUDED_

#include "TCPServer_CE.h"	// Added by ClassView
#include "TCPCustom_CE.h"
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

/////////////////////////////////////////////////////////////////////////////
// CSendDataServerDlg dialog
typedef struct _SOCKET_STREAM_FILE_INFO {

    TCHAR       szFileTitle[128];                   //文件的标题名
    DWORD       dwFileAttributes;                   //文件的属性
    FILETIME    ftCreationTime;                     //文件的创建时间
    FILETIME    ftLastAccessTime;                   //文件的最后访问时间
    FILETIME    ftLastWriteTime;                    //文件的最后修改时间
    DWORD       nFileSizeHigh;                      //文件大小的高位双字
    DWORD       nFileSizeLow;                       //文件大小的低位双字
    DWORD       dwReserved0;                        //保留,为0
    DWORD       dwReserved1;                        //保留,为0

} SOCKET_STREAM_FILE_INFO, * PSOCKET_STREAM_FILE_INFO;

class CSendDataServerDlg : public CDialog
{
// Construction
public:
	CSendDataServerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSendDataServerDlg)
	enum { IDD = IDD_SENDDATASERVER_DIALOG };
	int		m_localPort;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSendDataServerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HCURSOR OnQueryDragIcon();
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSendDataServerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnlisten();
	afx_msg void OnBtnclose();
	afx_msg void OnBtnok();
	afx_msg void OnButtonLicsen();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	static void CALLBACK OnClientConnect(CWnd *pWnd, CTCPCustom_CE *pTcpCustom);
	static void CALLBACK OnClientClose(CWnd *pWnd, CTCPCustom_CE *pTcpCustom);
	static void CALLBACK OnClientRead(CWnd *pWnd, CTCPCustom_CE *pTcpCustom, const char *buf, int len);
	static void CALLBACK OnClientError(CWnd *pWnd, CTCPCustom_CE *pTcpCustom, int nErrorCode);
	static void CALLBACK OnServerError(CWnd *pWnd, CTCPServer_CE *pTcpServer_CE, int nErrorCode);
	CTCPServer_CE m_tcpServer;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SENDDATASERVERDLG_H__8F621598_E20C_4988_99B7_DB6982399806__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -