using a common defination of SOCKETNAME