Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
demoDlg.h
Package: PPP0208.rar [view]
Upload User: karykuang
Upload Date: 2010-02-26
Package Size: 103k
Code Size: 3k
Category:
TCP/IP Stack
Development Platform:
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_)