Quote:
Originally Posted by shankarramv
csd=accept(sd,(struct sockaddr_in *) &client,csd);
|
That looks all wrong.
The last arg should be the address of a socklen_t, and you are also reusing the variable as a file descriptor.
I suggest you compile with maximum warnings, if using gcc use "-Wall -Werror".