#if !defined(AFX_CLIENTCHAT_H__CBCB1A05_DDBC_4AE2_93E8_A41C19CAB4BD__INCLUDED_)
#define AFX_CLIENTCHAT_H__CBCB1A05_DDBC_4AE2_93E8_A41C19CAB4BD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ClientChat.h : header file
//

class CChatServerDlg;

/////////////////////////////////////////////////////////////////////////////
// CClientChat command target

class CClientChat : public CAsyncSocket
{
// Attributes
public:

//**************************************************************************
	CClientChat( CChatServerDlg* dlg );
	CChatServerDlg* m_pdlg;
	CString IP_Addr;
	UINT PortNumber;
	CString Password;
	CString Username;
	BOOL IsLogin;

	void Init();

//***************************************************************************


// Operations
public:
	CClientChat();
	virtual ~CClientChat();

// Overrides
public:
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClientChat)
	public:
	virtual void OnReceive(int nErrorCode);
	virtual void OnConnect(int nErrorCode);
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CClientChat)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

// Implementation
protected:
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CLIENTCHAT_H__CBCB1A05_DDBC_4AE2_93E8_A41C19CAB4BD__INCLUDED_)
