Fixed socket_server and socket_client
- added almost test file
- need to fix threading