socket establishment for queue line with templates