hi , There is a debug in ddns3-client.While the ddns3-client run for several
days,there will be a few ddns3-client pids.I track the code,and find it because
of the recv.It run to the recv line and do not run forword.I am new to
socket,and i don't know how to solve it.could you please tell me how to do?
Thanks. int
ddns3_sockio_read(int sock, char *buf, int len) {
int ret;
char err[100]; MYDEBUG( printf("run here (%s %d\n) ... ",
__FILE__,__LINE__)); //**********************************
ret = recv(sock, buf, len, 0);
MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__));
//**********************************
if(ret < 0){
//perror("read()");
MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__));
//**********************************
ddns3_sockio_error(err,100);
MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__));
//**********************************
fprintf(stderr, "recv(): %s\n", err);
}
MYDEBUG( printf("run here (%s %d\n) ... ", __FILE__,__LINE__));
//**********************************
return ret;
} _______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev