int main(void) //Just for DHCP'mode
{
printf("\n 000000000000000000 \n");
FILE * stream = NULL;
FILE * pFile = NULL;
char buf[1024];
memset(buf, 0, sizeof(buf));
int i=0;
int ret = 0;
int fno = -1;
int fn1 = -1;
fd_set rfds;
int maxFd;
struct timeval timeout;
if( (stream = popen("ping -c 3 192.168.0.1","r")) == NULL)
{
printf("popen error!\n");
pclose(stream);
}
fno = fileno(stream);