//**********************************************************************
// Version: V1.0
// Coder: WinEggDrop
// Date Release: NULL
// Purpose: Kill An Active TCP Connection
// Test PlatForm: Win 2K Pro And Server SP4
// Compiled On: LCC 3.0,May Compile On VC++ 6.0(Not Test Yet)
//**********************************************************************
#include <winsock.h>
#include <windows.h>
#include <stdio.h>
#include <iphlpapi.h>
// Function ProtoType Declaration
//---------------------------------------------------------------------------------------------------------------------------
BOOL KillTCPConnection(const char *LocalAddress,const char *LocalPort,const char *RemoteAddress,const char *RemotePort );
BOOL IsDigits(const char *String );
void Usage(const char *Command );
//---------------------------------------------------------------------------------------------------------------------------
// End Of Fucntion ProtoType Declaration
// Main Function
int main(int argc,char *argv [])
{
if (argc!=5) // There Are Not 5 Arguement In Total
{
Usage(argv[0]); // Display The Usage
return -1; // Quit The Program
}
KillTCPConnection(argv[
// Version: V1.0
// Coder: WinEggDrop
// Date Release: NULL
// Purpose: Kill An Active TCP Connection
// Test PlatForm: Win 2K Pro And Server SP4
// Compiled On: LCC 3.0,May Compile On VC++ 6.0(Not Test Yet)
//**********************************************************************
#include <winsock.h>
#include <windows.h>
#include <stdio.h>
#include <iphlpapi.h>
// Function ProtoType Declaration
//---------------------------------------------------------------------------------------------------------------------------
BOOL KillTCPConnection(const char *LocalAddress,const char *LocalPort,const char *RemoteAddress,const char *RemotePort );
BOOL IsDigits(const char *String );
void Usage(const char *Command );
//---------------------------------------------------------------------------------------------------------------------------
// End Of Fucntion ProtoType Declaration
// Main Function
int main(int argc,char *argv [])
{
if (argc!=5) // There Are Not 5 Arguement In Total
{
Usage(argv[0]); // Display The Usage
return -1; // Quit The Program
}
KillTCPConnection(argv[