add tcp socket system. refactoring old.