I define a class:
class RtServer
{
public:
RtServer();
void init();
void close();
int sockfd;
};
void RtServer::close() {
close(sockfd);
}
Here I tried to call close() which is socket interface. When
compiling, it show the error message below:
no matching function for call to `RtServer::close(int&)'
I appreciate any help.
hp