Modified my version of TCP. The server parses the input from client side and handles errors appropriately.