snmp test

// snmp_test.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include 
//#include 
#include 
#pragma comment(lib, "Ws2_32.lib")

#define  MAXLENT 1000
TCHAR* g_strfilePath;  
TCHAR* g_strIpAddress;  
int g_nTimes = 0;  
int g_nInterval = 0;

void usage()  
{  
	printf("usage: [-f:str] [-i:IP address] [-l:number] [-t:number]\n\n");
	printf("     -f   The file you want to send\n");
	printf("     -x   Witch ip you want to send to\n");
	printf("     -l   The time between two transmission\n");
	printf("     -t   how much times you want to transmit file\n");
	ExitProcess(1);
}  

void ValidateArgs(int argc,TCHAR ** argv)
{
	int i;

	if (argc < 5) {
		usage();
	}
	for (i=1;i


 

你可能感兴趣的:(snmp test)