What I want to do now is to save the numbers into different variables to be able to work with them.
This is asked quite often, and a bit of searching should find you several threads with examples.
Basically, what you need to do is stop throwing the characters away. Save them in an array, starting with the content portion of the reply (the portion that follows the blank line). That requires that you determine what makes up a line ending. Is it \n, \r, \n\r, or \r\n? Whatever it is, when you see two combinations or individual characters in a row, that is the blank line.
Save the characters that follow into an array.
Then, when the end of message arrives (the client has no more data available and has disconnected), use strtok() (NOT strtok_r()) and atoi() to parse and use the data.