Generalized return type in runGeneralTCPServer