|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Socket Programming questions, thank you Setsockopt (sockfd, SOL_SOCKET, SO_SNDTIMEO, (char *) &timeout, sizeof (timeout))
Failure
Why?
How should pursue?
Thank you
: Roll : |
Socket Programming questions, thank you Perror printed with the wrong reasons. |
Socket Programming questions, thank you [code]
Int timeout = 1000;
. . .
Bread = setsockopt (sockfd, SOL_SOCKET, SO_RCVTIMEO, (char *) &timeout, sizeof (timeout));
If (bread "0) (
Perror ( "setsockopt (SO_RCVTIMEO) failed");
Exit (1);
}
[/code]
Translated by
However, the implementation shown setsockopt (SO_RCVTIMEO) failed : Invalid argument
Parameter seems to be no question that way?
INADDR_NONE there is the question of what is meant by?
Prawn requested RE
13X : roll : |
Socket Programming questions, thank you Doing, we should make it mandatory conversion char *
See removed |
Socket Programming questions, thank you INADDR_NONE mainly in the function inet_addr such mistakes do with the return of bars |
Socket Programming questions, thank you SO_RCVTIMEO option to the parameters timeval* |
Socket Programming questions, thank you What environment do not know the landlord |
Socket Programming questions, thank you Redhat9.0
Gcc
LINUX |
| |