I want to make something to read the text/strings sent to a server and maybe detect if the server is crashed or not and something to and some thing to send text/strings to a server maybe using winsock
P.S. I also want to make something to crash my server.

Take a look at this as a good starting point.

There are also a lot of examples if you use a search engine.

To "crash" your server, just stop the server application or close the socket.