📄 wcy_serverdlg.h
字号:
// WCY_SERVERDlg.h : header file
//
#if !defined(AFX_WCY_SERVERDLG_H__44E1BECD_AE29_49CB_B2C0_AB497944EA4C__INCLUDED_)
#define AFX_WCY_SERVERDLG_H__44E1BECD_AE29_49CB_B2C0_AB497944EA4C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define SVR_PORT 8439 //服务器端口
#define SEND_BUFFER_SIZE 4096 //每次发送大小
#define RECV_BUFFER_SIZE 4096
/////////////////////////////////////////////////////////////////////////////
// CWCY_SERVERDlg dialog
struct Fileinfo
{
char fileName[50]; //文件名
int fileBlock; //文件分块大小
int BlockNum; //文件块数量
unsigned long fileSize; //文件总大小
};
class CWCY_SERVERDlg : public CDialog
{
// Construction
public:
long filesize(FILE *stream);
int FileSend( SOCKET s ,char* filename );
BOOL InitSocket();
CWCY_SERVERDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CWCY_SERVERDlg)
enum { IDD = IDD_WCY_SERVER_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWCY_SERVERDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CWCY_SERVERDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBntSend();
virtual void OnCancel();
afx_msg void OnButton1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WCY_SERVERDLG_H__44E1BECD_AE29_49CB_B2C0_AB497944EA4C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -