I am getting this wierd error:
invalid conversion from `char' to ` char*'
Code:void Recieve(int nBytes, int clientSocket, char inMessage) { while (nBytes){ nBytes = recv(clientSocket, inMessage, sizeof(inMessage), 0); } }
I am getting this wierd error:
invalid conversion from `char' to ` char*'
Code:void Recieve(int nBytes, int clientSocket, char inMessage) { while (nBytes){ nBytes = recv(clientSocket, inMessage, sizeof(inMessage), 0); } }
Keyboard Not Found! Press any key to continue. . .
look up what the second parameter for recv() is supposed to be. Suspect it's supposed to be a char* and you are trying to send it a char. Therefore, can't convert from char to char *.
The second parameter to recv() needs to be a pointer to a buffer that will hold the data received from the socket.