Completed Integration between UI and TCP server