There won't be a single function that does that but you have just named the two I would expect you to use. Use recv to pull back the data from the server into temporary variables, and printf to print the contents of those variables to the screen.