// SocketServeur.h: interface for the CSocketServeur class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_SOCKETSERVEUR_H__5D0A38B2_BB26_483D_9E4E_170576DD6386__INCLUDED_) #define AFX_SOCKETSERVEUR_H__5D0A38B2_BB26_483D_9E4E_170576DD6386__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CSocketServeur :public CAsyncSocket { public: bool SendMessage(CString message); CSocketServeur(); virtual ~CSocketServeur(); void SetParent(CDialog *pWnd); void SetStatut(int statut); int GetStatut(); CString GetMessage(); virtual void OnClose(int nErrorCode); virtual void OnReceive(int nErrorCode); virtual void OnAccept(int nErrorCode); private: CDialog* m_pWnd; int m_nStatut; CString m_strMessage; }; #endif // !defined(AFX_SOCKETSERVEUR_H__5D0A38B2_BB26_483D_9E4E_170576DD6386__INCLUDED_)