test for socket of linux