Clas to find socket interface type