00001 // test3Dlg.h : header file 00002 // 00003 00004 #pragma once 00005 #include "afxcmn.h" 00006 #include "afxwin.h" 00007 #include "wvstreamlist.h" 00008 #include "wvwinstreamclone.h" 00009 00010 // Ctest3Dlg dialog 00011 class Ctest3Dlg : public CDialog 00012 { 00013 // Construction 00014 public: 00015 Ctest3Dlg(CWnd* pParent = NULL); // standard constructor 00016 00017 // Dialog Data 00018 enum { IDD = IDD_TEST3_DIALOG }; 00019 00020 protected: 00021 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00022 00023 00024 // Implementation 00025 protected: 00026 HICON m_hIcon; 00027 00028 // Generated message map functions 00029 virtual BOOL OnInitDialog(); 00030 afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 00031 afx_msg void OnPaint(); 00032 00033 afx_msg HCURSOR OnQueryDragIcon(); 00034 DECLARE_MESSAGE_MAP() 00035 00036 CAsyncSocket m_socket; 00037 public: 00038 afx_msg void OnBnClickedButton1(); 00039 afx_msg void OnBnClickedButton2(); 00040 void httpcallback(WvStream &s, void *userdata); 00041 void tcpincallback(WvStream &s, void *userdata); 00042 00043 CRichEditCtrl m_response; 00044 CEdit m_url; 00045 private: 00046 WvStreamList *m_streamlist; 00047 WvWinStreamClone *m_winstream; 00048 public: 00049 afx_msg void OnBnClickedOk(); 00050 CRichEditCtrl m_received; 00051 CEdit m_listenport; 00052 CEdit m_conncount; 00053 afx_msg void OnEnChangeEdit1(); 00054 afx_msg void OnBnClickedButton3(); 00055 CEdit m_csaddr; 00056 };