Corrected the class TcpService.swift