Refactor tcp_client
Add recieving and parsing packet
Refactoring