www.pudn.com > IP_phone.rar > RecSocket.h
/**********************************************************/
/*类名:CRecSocket */
/*简述:用于接受的UDPSocket */
/**********************************************************/
#if !defined(AFX_RECSOCKET_H__F043C665_7112_41EB_983D_B65F4420DD8D__INCLUDED_)
#define AFX_RECSOCKET_H__F043C665_7112_41EB_983D_B65F4420DD8D__INCLUDED_
#include "SortData.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RecSocket.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CRecSocket command target
class CRecSocket : public CAsyncSocket
{
// Attributes
public:
// Operations
public:
BOOL Ini();//初始化
BOOL CloseSocket();
CRecSocket(CNC_ClientDlg *temp);
virtual ~CRecSocket();
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRecSocket)
public:
virtual void OnReceive(int nErrorCode);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CRecSocket)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
// Implementation
public:
//CSortData m_sort;
protected:
CNC_ClientDlg *m_dlg;
BOOL m_bIni;//信号量
struct Frame *m_pFrame;
char m_cBuffer[60];
int m_iLen;
CSortData *m_sort;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RECSOCKET_H__F043C665_7112_41EB_983D_B65F4420DD8D__INCLUDED_)