   problems with winsock
  I''m developing a little network game and i use winsock.I created this class to represent a client   typedef class __CLIENT{private:int Socket;timeval timeout;public:bool join(const char *addr);bool checkMsg();LPDATABLOCK getMsg();void sendMsg(LPDATABLOCK db);void disconnect();}CLIENT,*LPCLIENT;and i use the next function (copied from a tutorial ) to join a sever    bool __CLIENT :: join (const char *addr){int error;WSAData wsaData;if ((error = WSAStartup(MAKEWORD(2, 2), &wsaData)) ==  SOCKET_ERROR) return false;int mySocket = socket(AF_INET, SOCK_STREAM, 0);if (mySocket == SOCKET_ERROR)return false;struct hostent *host_entry;if ((host_entry = gethostbyname(addr)) == NULL)return false;struct sockaddr_in Server;Server.sin_family = AF_INET;Server.sin_port = htons(serverPort);Server.sin_addr.s_addr = *(unsigned long*) host_entry->h_addr;if (connect(mySocket, (sockaddr*)&Server, sizeof(Server)) == SOCKET_ERROR) return false;Socket = mySocket;return true;}yet,for some reason when i try to connect a server i get that enoying message of "sorry for inconvenients bla bla bla ....."y?note: the problem happens only if thers a server waiting for connection on the given ip addr. 
  Might help to post the server code for accepting messages. ;void __SERVER::checkConn(){int i,s;int nfds; fd_set conn; int Client_Length;timeout.tv_sec=0; timeout.tv_usec=0;if (connected < MaxConn){FD_ZERO(&conn);FD_SET(ListeningSocket, &conn);nfds=ListeningSocket+1;s = select(nfds, &conn, NULL, NULL, &timeout);if (s > 0) {for (i = 0;(i < MaxConn)&&(client[i].Enabled); i++);if (i!=MaxConn){Client_Length = sizeof(client[i].address);client[i].Socket = accept(ListeningSocket,(struct sockaddr *)&client[i].address,&Client_Length);connected++;client[i].Enabled = true;}}}}