#pragma	once

#include "NetBridge_Base.h"

class CNetBridge_OVERLAPPED : public CNetBridge_Base
{
public:

	CNetBridge_OVERLAPPED(void);
	virtual ~CNetBridge_OVERLAPPED(void);

	virtual int					Init				();
	virtual	int					Host				( DWORD dwIP, DWORD dwPort, CEventObj* pEventObj );
	virtual int					Connect				( DWORD dwIP, DWORD dwPort, CEventObj* pEventObj );
	virtual void				Send				( DWORD dwNetID, DWORD dwSize, PVOID pBuffer, DWORD dwPriority, DWORD dwFlag );

	//======================================================================================================
private:

	static DWORD WINAPI			Thread_Accept		( PVOID pParam );
	static DWORD WINAPI			Thread_Recv			( PVOID pParam );
	static DWORD WINAPI			Thread_Send			( PVOID pParam );
};