让天龙八部游戏掉线,并随时可以恢复。而且其他的程序不受影响。比如QQ,网页,其他游戏啊等等。就是登录游戏后人为让它掉线一次,再重新连接(是马上重新连接)。类似把网络连接停用了,再恢复。只是这样会影响其他的网络程序。本人思路是禁用该网游打开的端口,已经可以找到端口了,但是暂时禁用或者屏蔽它的端口还没有找到有价值的资料。有人说要用到防火墙方面的东西,也可以写个驱动等等。 大家可以给些建议吗?多谢,在线等.
解决方案 »
- vc 获取打印纸张的大小的问题
- 数据库的DLL
- 初学MFC 请问如何显示一个文档
- 如何从子窗口返回父窗口
- 急寻解决办法
- unhandled exception in map.exe(NTDLL.DLL):OXC0000005:Access Violation,怎么查看具体错误原因
- 如何模式对话框里调用视类的成员?VC开发的DLL可还在PB里调用?
- 请问,可不可以将一个Dialog Bar封装到一个COM中去呢?
- 怎么样用函数GetPrivateProfileSection来读ini文件?
- VC做报表,表格除了大型的CRYSTAL REPORT之类的有没有一些像CELL组件既小又好比较好组件。
- CImaList
- BCG的CBCGPDockingControlBar窗口组合了CBCGPTabWnd控件,然后四个list控件addtab到CBCGPTabWnd控件上,怎么知道用户点击的是哪个list窗口呢?
下了Win2000 DDK ,但是安装不上啊。是XP系统。
{
MIB_TCPROW sKillConn;
sKillConn.dwState = MIB_TCP_STATE_DELETE_TCB;
sKillConn.dwLocalAddr = dwLocalIP;
sKillConn.dwRemoteAddr = dwRemoteIP;
sKillConn.dwLocalPort = dwLocalPort;
sKillConn.dwRemotePort = dwRemotePort;
DWORD dwRez = SetTcpEntry(&sKillConn);
if(dwRez != NO_ERROR)
{
TRACE("\nError closing connection ;%d\n",GetLastError());
return false;
}
return true;
}
还有你这个方法可以重新连接吗?
msdn.microsoft.com/en-us/library/aa366073(VS.85).aspx
{
//TRACE("\nError closing connection ;%d\n",GetLastError());
//return false;
AfxMessageBox("ERROR");
} 我是简单的弹了个对话框。
Return ValueThe function returns NO_ERROR (zero) if the function is successful.If the function fails, the return value is one of the following error codes.
Return code DescriptionERROR_ACCESS_DENIED
Access is denied. This error is returned on Windows Vista and Windows Server 2008 under several conditions that include the following: the user lacks the required administrative privileges on the local computer or the application is not running in an enhanced shell as the built-in Administrator (RunAs administrator).ERROR_INVALID_PARAMETER
An input parameter is invalid, no action was taken. This error is returned if the pTcpRow parameter is NULL or the Row member in the MIB_TCPROW structure pointed to by the pTcpRow parameter is not set to MIB_TCP_STATE_DELETE_TCB.ERROR_NOT_SUPPORTED
The IPv4 transport is not configured on the local computer.Other
Use FormatMessage to obtain the message string for the returned error.
就是驱动那个windows 2000 DDk没有找到啊,在微软网站上也没有找到。
还有用SetTcpEntry的话怎么恢复连接啊?
32 bit x86 libraries (X86DLIBC)
64 bit ia64 Binaries, Tools and Build Environment (IA6DBIN)
Headers (NINC_DDK)
Windows Me Development Environment (ME_ENV)
Windows DirectX 7 Development Environment (DX7_ENV)
Debugging Tools (DBGGRS)
Windows Me Debugging Kit (ME_DBG)
1394 Samples (1394_DDK)
ACPI Driver Sample (ACPI_DDK)
Audio Samples (NAUD_DDK)
Core Driver Samples (BASE_DDK)
Comm Samples (NCOM_DDK)
DVD Samples (NDVD_DDK)
General Driver Samples (NGEN_DDK)
General WDM Samples (NWDM_DDK)
HID Samples (NHID_DDK)
IME Samples (NIME_DDK)
Input Samples (NINP_DDK)
IRDA samples (NIRD_DDK)
Modem Info & Utils (NMDK_DDK)
Network Samples (NNET_DDK)
Printer Samples (NPRN_DDK)
Printer Minidriver Samples (NPTM_DDK)
Smart Card Samples (NSCD_DDK)
Scancam Samples (NSCN_DDK)
Storage Samples (NSTO_DDK)
USB Samples (NUSB_DDK)
Virtual DOS Driver Samples (NVDD_DDK)
Video Samples (NVID_DDK)
WDM Video Capture Samples (NCAP_DDK)
WIA Samples (NWIA_DDK)
Windows Me Sample Display Driver (DX7_SAMP)
Windows Me Sample Media Locking Tool (LOCKCD)
Windows Me General Sample (ME_GEN)
Windows Me Block Samples (ME_SAMP1)
Windows Me Base Samples (ME_SAMP2)本人的机子是Windows XP,大家多帮帮我啊
在自己的connect中判断连接的IP端口和连接次数, 根据自己的需要做处理!
天龙八部的网络服务器采用epoll 模型的,最高单台服务器支持1~2w的连接数,我同学说的,好像现在挺流行这种构架的。