#pragma once #include "mysocket1.h" #include "mysocket2.h" #include "FineDfThresholdLB.h" // CsocketDlg dialog class CsocketDlg : public CDialogEx { // Construction public: CsocketDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_SOCKET_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Implementation protected: HICON m_hIcon; // Generated message map functions virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: CButton m_ctlConnect; CString m_strMessage; CString m_strName; int m_iPort; CListBox m_ctlRecvd; CListBox m_ctlSent; int m_iType; afx_msg void OnRType(); afx_msg void OnServer(); public: afx_msg void OnClickedBconnect(); void OnAccept(void); void OnConnect(void); void OnSend(void); void OnReceive(void); void OnClose(void); private: mysocket2 m_sConnectSocket; mysocket2 m_sListenSocket; public: afx_msg void OnClickedBsend(); afx_msg void OnClickedBclose(); private: CFineDfThresholdLB m_dFineDfThresholdLB; public: afx_msg void OnClickedFinedfthresholdlbbutton(); protected: struct setthresholdfinedflb{ unsigned char sof_lb; //unsigned char msg_type; unsigned short command_code; unsigned short sequence_no; unsigned int msg_length; unsigned char eof_lb; unsigned char threshold_value; }; extern struct setthresholdfinedflb set_thresholdfinedflb;};
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)