TCP Thread work