use frontend type infomation in /proc/nim_sockets to detect if a frontend