This is what I have:
Code:
sprintf(ClientOutput,"Please type something: ");
send(SOCKET,ClientOutput,strlen(ClientOutput),0);
char ClientInput[1000];
recv(SOCKET1,ClientInput,1000,2); // Get stuff by the client
cout << ClientInput; // Output it to the server
send(SOCKET1,ClientInput,strlen(ClientInput),0); // Output it back to the client
Sleep(3000);
closesocket(SOCKET1);
When the user types something it is supposed to echo it back to them. But It only lets them type one character. It then has that character as the first character of the string and then adds about 7-10 other symbols to the end of that string.
Im using Borland C++Builder v3 (Old I know) and Windows 98.
Paul