Use callback function for client status once more, refactoring TCP reading