demoDlg.h
资源名称:PPP0208.rar [点击查看]
上传用户:karykuang
上传日期:2010-02-26
资源大小:103k
文件大小:3k
源码类别:
TCP/IP协议栈
开发平台:
Visual C++
- // demoDlg.h : header file
- //
- //{{AFX_INCLUDES()
- //}}AFX_INCLUDES
- #if !defined(AFX_DEMODLG_H__7978E517_50AB_11D5_9346_0010B54D55DA__INCLUDED_)
- #define AFX_DEMODLG_H__7978E517_50AB_11D5_9346_0010B54D55DA__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "public.h"
- #include "CRC.h" // Added by ClassView
- #include "Packet.h"
- #define CN_SEND WM_USER+100
- #define MAXLENGTH 64
- //#define READ_OS( x ) (x -> osRead)
- /////////////////////////////////////////////////////////////////////////////
- // CDemoDlg dialog
- class CDemoDlg : public CDialog
- {
- // Construction
- public:
- void Display(BOOL recv,BYTE* dispstr);
- void writelog(CString temp);
- void bytecat(BYTE* strCommRecvMsg);
- void testcat(BYTE* strCommRecvMsg);
- // void getpacket();
- //CCRC m_crc;
- CDemoDlg(CWnd* pParent = NULL); // standard constructor
- HANDLE hCommDev;
- CString tempstr;
- BYTE RecvMsgtemp[256];
- BYTE ATState;
- BOOL ini,recv;
- BOOL framehead,frameend; //frame head end flag
- BYTE szPacketRx[256]; //receive packet buffer
- BYTE szPacketTx[256]; //send packet buffer
- BYTE temp[256];
- CPacket m_packet;
- char szDisplay[3];
- int iLen;
- CString *m_ipOut;
- CString *m_ipad;
- // Dialog Data
- //{{AFX_DATA(CDemoDlg)
- enum { IDD = IDD_DEMO_DIALOG };
- CListBox m_event;
- CString m_baud;
- CString m_called;
- CString m_com;
- CString m_password;
- CString m_userid;
- CString m_ipOut0;
- CString m_ipOut1;
- CString m_ipOut2;
- CString m_ipOut3;
- CString m_ipad0;
- CString m_ipad1;
- CString m_ipad2;
- CString m_ipad3;
- CString m_srcport;
- CString m_desport;
- // CString m_ipOut[4];
- // CString m_ipad[4];
- CString m_senddata;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDemoDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CDemoDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnInicom();
- afx_msg bool OnTimer(UINT nIDEvent);
- afx_msg void OnDial();
- afx_msg void OnSend(LPARAM lParam);
- afx_msg void OnPing();
- afx_msg void OnSendA();
- afx_msg void OnCloseA();
- afx_msg void OnKeyPressSendBox(short FAR* KeyAscii);
- afx_msg void OnUdp();
- afx_msg void OnTcp();
- DECLARE_EVENTSINK_MAP()
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- BOOL MyReadFile_Flag;
- BOOL MyReadFile_Flag1;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DEMODLG_H__7978E517_50AB_11D5_9346_0010B54D55DA__INCLUDED_)