I am getting a socket error while trying to send a sequence of strings to a server I created. Im useing Winsock as I am programing in Windows.

the error returned by WSAGetLastError was number 10054:

#define WSABASEERR 10000;
#define WSAECONNRESET (WSABASEERR+54);

Which acording to google indicates a connection reset. Obviously this must mean my server is not receiving the data.

I have an array of pointers:

char *list[6];

and my server loops 6 times and each time it assignes the data retrived into a buffer, and then into my array.

The client simply loops 6 times each time asking for a string and sending it.

This way my theory is I will be able to pass a array of pointers from my client to the server.

the client sucessfully sends 3 strings, then I get the error reported by my error handler.

Acording to http://www.innovation.ch/java/HTTPClient/errors.html

java.net.SocketException: Connection refused
(connecting to the local host) The server is not running (nobody is listening on the specified port).

I am programing in C but would assume that this error is global and would apply to all languages.

I have verified with my firewall status that before the error the server is indeed listeining, and conected in, and the client is conected out.

After the error ocures, my client window closes,.

Are there any typical causes of connection reset?