Re: Problem with the server software
You have to put the server into listen mode, before it can accept connections.
What are you talking about? You can't use cout without using namespace std; or std::cout.
The point is not whether <iostream.h> will work, it is the fact that it is a deprecated header, if you don't understand that then maybe you should look it up.
You create the other socket, because it might be a server that has received connections from multiple hosts. In that case you want to only send the appropriate data for each host, to the correct host. Creating client sockets allows you to do this.
|