【文件属性】:
文件名称:iServer tcp 模拟服务器
文件大小:141KB
文件格式:RAR
更新时间:2011-12-11 04:38:03
tcp 模拟服务器
tcp 模拟服务器,源码:#include "stdafx.h"
#include "SocketEx.h"
#include ".\socketex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSocketEx
//IMPLEMENT_DYNAMIC(CSocketEx, CWinThread)
//IMPLEMENT_DYNAMIC(CSocketFileEx, CFile)
CSocketEx::CSocketEx()
{
m_hSocket = INVALID_SOCKET;
m_bCreate = FALSE;
memset(&m_gThreadSocket,0,sizeof(m_gThreadSocket));
////m_gThreadSocket.hThread = NULL;
////m_gThreadSocket.hEventSocket = NULL;
////m_gThreadSocket.hEventKill = NULL;
////m_gThreadSocket.hEventDead = NULL;
//m_hEvents[0] = CreateEvent(NULL, FALSE, FALSE, NULL);
}
【文件预览】:
iServer
----iServer.suo(48KB)
----iServer.sln(887B)
----Debug()
----iServer()
--------net()
--------iServerView.cpp(2KB)
--------stdafx.h(2KB)
--------iServer.vcproj(8KB)
--------targetver.h(1KB)
--------ViewTree.cpp(876B)
--------ViewTree.h(372B)
--------include()
--------MainFrm.h(1KB)
--------iServer.cpp(6KB)
--------OutputWnd.cpp(5KB)
--------iServer.h(721B)
--------iServerDoc.cpp(1KB)
--------Debug()
--------stdafx.cpp(140B)
--------FileView.h(1KB)
--------ReadMe.txt(3KB)
--------PropertiesWnd.cpp(8KB)
--------MainFrm.cpp(12KB)
--------ClassView.h(1KB)
--------OutputWnd.h(1KB)
--------PropertiesWnd.h(1KB)
--------Resource.h(3KB)
--------iServer.rc(16KB)
--------iclass()
--------res()
--------iServer.vcproj.张卫海.archfree.user(1KB)
--------UserImages.bmp(8KB)
--------iServerDoc.h(554B)
--------ClassView.cpp(9KB)
--------iServerView.h(1KB)
--------FileView.cpp(7KB)